Yuki Takei пре 4 година
родитељ
комит
7b25435aae
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      packages/app/src/server/routes/apiv3/slack-integration.js

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

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