Procházet zdrojové kódy

Merge pull request #3784 from weseek/fix/5782-6090-set-ptog-token-in-header

fix/5782-6090-set-ptog-token-in-header
Yuki Takei před 4 roky
rodič
revize
d98a2e0c50
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      packages/slackbot-proxy/src/controllers/slack.ts

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

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