zahmis 4 лет назад
Родитель
Сommit
b34d752aad
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      src/server/routes/apiv3/slack-integration-settings.js

+ 6 - 0
src/server/routes/apiv3/slack-integration-settings.js

@@ -448,6 +448,12 @@ module.exports = (crowi) => {
    */
   router.delete('/slack-app-integration', validator.deleteIntegration, apiV3FormValidator, async(req, res) => {
     const SlackAppIntegration = mongoose.model('SlackAppIntegration');
+
+    const params = {
+      'slackbot:proxyServerUri': null,
+    };
+    crowi.configManager.updateConfigsInTheSameNamespace('crowi', params, true);
+
     const { integrationIdToDelete } = req.query;
     try {
       const response = await SlackAppIntegration.findOneAndDelete({ _id: integrationIdToDelete });