Yuki Takei 4 anni fa
parent
commit
625d694e6e

+ 2 - 2
packages/app/src/server/routes/apiv3/slack-integration.js

@@ -139,7 +139,7 @@ module.exports = (crowi) => {
     res.send();
 
     const tokenPtoG = req.headers['x-growi-ptog-tokens'];
-    const client = slackIntegrationService.generateClient(tokenPtoG);
+    const client = await slackIntegrationService.generateClient(tokenPtoG);
 
     const args = body.text.split(' ');
     const command = args[0];
@@ -177,7 +177,7 @@ module.exports = (crowi) => {
 
 
     const tokenPtoG = req.headers['x-growi-ptog-tokens'];
-    const client = slackIntegrationService.generateClient(tokenPtoG);
+    const client = await slackIntegrationService.generateClient(tokenPtoG);
 
     const payload = JSON.parse(req.body.payload);
     const { type } = payload;