Browse Source

added type and challenge keys in the req body

kaori 5 years ago
parent
commit
240e9da269
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/slackbot-proxy/src/controllers/growi-to-slack.ts

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

@@ -103,6 +103,8 @@ export class GrowiToSlackCtrl {
       const url = new URL('/_api/v3/slack-integration/proxied/commands', order.growiUrl);
       await axios.post(url.toString(), {
         tokenPtoG: order.growiAccessToken,
+        type: 'url_verification',
+        challenge: 'url verification is successful',
       });
     }
     catch (err) {