Explorar o código

change endpoints for generating access tokens

kaori %!s(int64=4) %!d(string=hai) anos
pai
achega
940f427abb

+ 1 - 1
src/client/js/components/Admin/SlackIntegration/CustomBotWithProxySettings.jsx

@@ -53,7 +53,7 @@ const CustomBotWithProxySettings = (props) => {
 
 
   const generateTokenHandler = async() => {
   const generateTokenHandler = async() => {
     try {
     try {
-      await appContainer.apiv3.put('/slack-integration-settings/slack-app-integrations');
+      await appContainer.apiv3.put('/slack-integration-settings/access-tokens');
     }
     }
     catch (err) {
     catch (err) {
       toastError(err);
       toastError(err);

+ 1 - 2
src/client/js/components/Admin/SlackIntegration/OfficialBotSettings.jsx

@@ -54,8 +54,7 @@ const OfficialBotSettings = (props) => {
 
 
   const generateTokenHandler = async() => {
   const generateTokenHandler = async() => {
     try {
     try {
-      // GW-6068 set new value after this
-      await appContainer.apiv3.put('/slack-integration-settings/slack-app-integrations');
+      await appContainer.apiv3.put('/slack-integration-settings/access-tokens');
     }
     }
     catch (err) {
     catch (err) {
       toastError(err);
       toastError(err);