Browse Source

clean code

kaori 4 năm trước cách đây
mục cha
commit
352061d1af

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

@@ -97,17 +97,6 @@ module.exports = function(crowi) {
     }
     }
 
 
     await commentEvent.emit('remove', savedComment);
     await commentEvent.emit('remove', savedComment);
-
-    /**
-     * TODO: move Activity operation from this model scope by GW-7506
-     */
-    try {
-      const activityLog = await Activity.createByPageComment(savedComment);
-      debug('Activity created', activityLog);
-    }
-    catch (err) {
-      throw err;
-    }
   });
   });
 
 
   commentSchema.methods.removeWithReplies = async function(comment) {
   commentSchema.methods.removeWithReplies = async function(comment) {