Explorar o código

pass tokenPtoG

itizawa %!s(int64=5) %!d(string=hai) anos
pai
achega
ac597b26a1
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      packages/slackbot-proxy/src/controllers/slack.ts

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

@@ -170,7 +170,10 @@ export class SlackCtrl {
       const url = new URL('/_api/v3/slack-integration/proxied/interactions', relation.growiUri);
       return axios.post(url.toString(), {
         ...body,
-        tokenPtoG: relation.tokenPtoG,
+      }, {
+        headers: {
+          'x-growi-ptog-tokens': relation.tokenPtoG,
+        },
       });
     });