mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 03:05:24 +08:00
16 lines
343 B
JavaScript
16 lines
343 B
JavaScript
const Setting = require('./models/setting');
|
|
const wordlist = require('./services/wordlist');
|
|
|
|
module.exports = () => Promise.all([
|
|
|
|
// Upsert the settings object.
|
|
Setting
|
|
.init({id: '1', moderation: 'pre'})
|
|
.then(() => {
|
|
|
|
// Load in the wordlist now that settings have been init'd.
|
|
return wordlist.init();
|
|
})
|
|
|
|
]);
|