Shun Miyazawa 4 лет назад
Родитель
Сommit
cb938d45cb
1 измененных файлов с 0 добавлено и 7 удалено
  1. 0 7
      packages/app/src/server/models/comment.js

+ 0 - 7
packages/app/src/server/models/comment.js

@@ -118,12 +118,5 @@ module.exports = function(crowi) {
     return this.distinct('creator', { page }).exec();
     return this.distinct('creator', { page }).exec();
   };
   };
 
 
-  /**
-   * post save hook
-   */
-  commentSchema.post('save', async(savedComment) => {
-    await commentEvent.emit('create', savedComment);
-  });
-
   return mongoose.model('Comment', commentSchema);
   return mongoose.model('Comment', commentSchema);
 };
 };