Explorar o código

remove unnecessary arg

Shun Miyazawa %!s(int64=4) %!d(string=hai) anos
pai
achega
53044e6d3f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/app/src/server/models/comment.js

+ 1 - 1
packages/app/src/server/models/comment.js

@@ -73,7 +73,7 @@ module.exports = function(crowi) {
       { $set: { comment, isMarkdown } },
     );
 
-    await commentEvent.emit('update', commentData.creator, commentData.page);
+    await commentEvent.emit('update', commentData);
 
     return commentData;
   };