GlobalNotificationSetting.js 515 B

12345678910
  1. const mongoose = require('mongoose');
  2. const GlobalNotificationSetting = require('./GlobalNotificationSetting/index');
  3. const GlobalNotificationSettingClass = GlobalNotificationSetting.class;
  4. const GlobalNotificationSettingSchema = GlobalNotificationSetting.schema;
  5. module.exports = function(crowi) {
  6. GlobalNotificationSettingClass.crowi = crowi;
  7. GlobalNotificationSettingSchema.loadClass(GlobalNotificationSettingClass);
  8. return mongoose.model('GlobalNotificationSetting', GlobalNotificationSettingSchema);
  9. };