Explorar el Código

added bolt init

Steven Fukase hace 5 años
padre
commit
9b3d01048e
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/server/routes/apiv3/slack-integration.js

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

@@ -139,6 +139,11 @@ module.exports = (crowi) => {
 
       try {
         await updateSlackBotSettings(requestParams);
+
+        // initialize bolt service
+        crowi.boltService.initialize();
+        crowi.boltService.publishUpdatedMessage();
+
         const slackIntegrationSettingsParams = {
           currentBotType: crowi.configManager.getConfig('crowi', 'slackbot:type'),
         };