Explorar o código

slack after success res

sou %!s(int64=8) %!d(string=hai) anos
pai
achega
22d21473e9
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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()
     });
 
+    res.json(ApiResponse.success({comment: createdComment}));
+
     // slack notification
     if (slackNotificationForm.isSlackEnabled) {
       try {
@@ -95,7 +97,7 @@ module.exports = function(crowi, app) {
       }
     }
 
-    return res.json(ApiResponse.success({comment: createdComment}));
+
   };
 
   /**