zahmis 4 лет назад
Родитель
Сommit
4630ece3b6
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);
       const status = await getConnectionStatus(token);
-      if(status.error != null){
-        return res.status(400).send({message: `failed to get onnection. 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 });
       return res.send({ relation, slackBotToken: token });
@@ -143,8 +143,8 @@ export class GrowiToSlackCtrl {
     }
     }
 
 
     const status = await getConnectionStatus(token);
     const status = await getConnectionStatus(token);
-    if(status.error != null){
-      return res.status(400).send({message: `failed to get onnection. 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);
     logger.debug('relation test is success', order);