initialize settings in an init file before app accepts requests

This commit is contained in:
Riley Davis
2016-11-10 13:02:52 -07:00
parent 26f48196d9
commit c698ae78a7
3 changed files with 33 additions and 15 deletions
+6
View File
@@ -0,0 +1,6 @@
const Setting = require('./models/setting');
const defaults = {id: '1', moderation: 'pre'};
module.exports = Setting.init(defaults);
// presumably this file will grow, which is why I've broken it out.