sou 7 lat temu
rodzic
commit
cdd11296d3
2 zmienionych plików z 4 dodań i 3 usunięć
  1. 3 3
      lib/models/global-notification-setting.js
  2. 1 0
      lib/models/index.js

+ 3 - 3
lib/models/global-notification-setting.js

@@ -93,17 +93,17 @@ module.exports = function(crowi) {
   };
 
   // classify a list of notification settings into enabled and disabled
-  notificationSchema.mothods.classify = settings => {
+  notificationSchema.methods.classify = settings => {
     // return resolve({enabled: [Notification], disabled: [Notification]})
   };
 
   // returns only enabled notification settings
-  notificationSchema.mothods.getEnabeldSettings = settings => {
+  notificationSchema.methods.getEnabeldSettings = settings => {
     // return resolve([Notification])
   };
 
   // sort a list of notifications by path from short to long
-  notificationSchema.mothods.sortByPath = settings => {
+  notificationSchema.methods.sortByPath = settings => {
     // return resolve([Notification])
   };
 

+ 1 - 0
lib/models/index.js

@@ -12,4 +12,5 @@ module.exports = {
   Comment: require('./comment'),
   Attachment: require('./attachment'),
   UpdatePost: require('./updatePost'),
+  GlobalNotification: require('./global-notification-setting'),
 };