itizawa пре 4 година
родитељ
комит
f63c0bcc82
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      packages/slackbot-proxy/src/controllers/growi-to-slack.ts

+ 4 - 4
packages/slackbot-proxy/src/controllers/growi-to-slack.ts

@@ -108,8 +108,8 @@ export class GrowiToSlackCtrl {
       }
 
       const status = await getConnectionStatus(token);
-      if (status.error != null){
-        return res.status(400).send({ message: `failed to get connection. err: ${status.error}` })
+      if (status.error != null) {
+        return res.status(400).send({ message: `failed to get connection. err: ${status.error}` });
       }
 
       return res.send({ relation, slackBotToken: token });
@@ -143,8 +143,8 @@ export class GrowiToSlackCtrl {
     }
 
     const status = await getConnectionStatus(token);
-    if (status.error != null){
-      return res.status(400).send({ message: `failed to get connection. err: ${status.error}` })
+    if (status.error != null) {
+      return res.status(400).send({ message: `failed to get connection. err: ${status.error}` });
     }
 
     logger.debug('relation test is success', order);