kaori 4 лет назад
Родитель
Сommit
fc13b8caf1

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

@@ -105,7 +105,7 @@ export class GrowiToSlackCtrl {
       await axios.post(url.toString(), {
         type: 'url_verification',
         tokenPtoG: order.growiAccessToken,
-        message: 'url verification was successful',
+        challenge: 'this_is_my_challenge_token',
       });
     }
     catch (err) {

+ 1 - 1
src/server/routes/apiv3/slack-integration.js

@@ -83,7 +83,7 @@ module.exports = (crowi) => {
     // eslint-disable-next-line max-len
     // see: https://api.slack.com/apis/connections/events-api#the-events-api__subscribing-to-event-types__events-api-request-urls__request-url-configuration--verification
     if (body.type === 'url_verification') {
-      return res.send({ message: body.message });
+      return res.send({ challenge: body.challenge });
     }
 
     return handleCommands(req, res);