Просмотр исходного кода

fix endpoint custom-bot-wthput-proxy to bot-type

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

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

@@ -18,7 +18,7 @@ const CustomBotWithoutProxySettings = (props) => {
 
   const deleteSlackSettingsHandler = async() => {
     try {
-      await appContainer.apiv3.put('/slack-integration-settings/custom-bot-without-proxy', {
+      await appContainer.apiv3.put('/slack-integration-settings/bot-type', {
         slackSigningSecret: '',
         slackBotToken: '',
         currentBotType: '',

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

@@ -34,7 +34,7 @@ const CustomBotWithoutProxySettingsAccordion = ({
 
   const updateSecretTokenHandler = async() => {
     try {
-      await appContainer.apiv3.put('/slack-integration-settings/custom-bot-without-proxy', {
+      await appContainer.apiv3.put('/slack-integration-settings/bot-type', {
         slackSigningSecret,
         slackBotToken,
         currentBotType,