|
|
@@ -1,8 +1,10 @@
|
|
|
const mongoose = require('mongoose');
|
|
|
const GlobalNotificationSetting = require('./GlobalNotificationSetting/index');
|
|
|
+const GlobalNotificationSettingClass = GlobalNotificationSetting.class;
|
|
|
+const GlobalNotificationSettingSchema = GlobalNotificationSetting.schema;
|
|
|
|
|
|
module.exports = function(crowi) {
|
|
|
- GlobalNotificationSetting.class.crowi = crowi;
|
|
|
- GlobalNotificationSetting.schema.loadClass(GlobalNotificationSetting.class);
|
|
|
- return mongoose.model('GlobalNotificationSetting', GlobalNotificationSetting.schema);
|
|
|
+ GlobalNotificationSettingClass.crowi = crowi;
|
|
|
+ GlobalNotificationSettingSchema.loadClass(GlobalNotificationSettingClass);
|
|
|
+ return mongoose.model('GlobalNotificationSetting', GlobalNotificationSettingSchema);
|
|
|
};
|