mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 07:24:53 +08:00
a7e9c0c776
- Updated enum values to be uppercase - Updated services to expose service models - Updated models to only export the mongoose model - Moved all mongoose static methods over to new services - Updated tests to refelct new setup BREAKING - Status that were uppercased (caps) have caused issues with the admin pages
15 lines
256 B
JavaScript
15 lines
256 B
JavaScript
const SettingsService = require('./services/settings');
|
|
|
|
module.exports = () => Promise.all([
|
|
|
|
// Upsert the settings object.
|
|
SettingsService.init({
|
|
id: '1',
|
|
moderation: 'pre',
|
|
wordlist: {
|
|
banned: [],
|
|
suspect: []
|
|
}
|
|
})
|
|
]);
|