sou пре 8 година
родитељ
комит
22d21473e9
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      lib/routes/comment.js

+ 3 - 1
lib/routes/comment.js

@@ -77,6 +77,8 @@ module.exports = function(crowi, app) {
       updatedAt: new Date()
       updatedAt: new Date()
     });
     });
 
 
+    res.json(ApiResponse.success({comment: createdComment}));
+
     // slack notification
     // slack notification
     if (slackNotificationForm.isSlackEnabled) {
     if (slackNotificationForm.isSlackEnabled) {
       try {
       try {
@@ -95,7 +97,7 @@ module.exports = function(crowi, app) {
       }
       }
     }
     }
 
 
-    return res.json(ApiResponse.success({comment: createdComment}));
+
   };
   };
 
 
   /**
   /**