zahmis 5 лет назад
Родитель
Сommit
9c6e3a2c28
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/server/routes/apiv3/slack-integration.js

+ 3 - 3
src/server/routes/apiv3/slack-integration.js

@@ -305,10 +305,10 @@ module.exports = (crowi) => {
           channel: `#${channel}`,
           text: 'Your test was successful!',
         });
-        logger.info('SlackTest: send success massage to slack work space at #general.');
-        logger.info('If you do not receive a message, you may not have invited the bot to the #general channel.');
+        logger.info(`SlackTest: send success massage to slack work space at #${channel}.`);
+        logger.info(`If you do not receive a message, you may not have invited the bot to the #${channel} channel.`);
         // eslint-disable-next-line max-len
-        const message = 'Successfully send message to Slack work space. See #general channel. If you do not receive a message, you may not have invited the bot to the #general channel.';
+        const message = `Successfully send message to Slack work space. See #general channel. If you do not receive a message, you may not have invited the bot to the #${channel} channel.`;
         return res.apiv3({ message });
       }
       catch (error) {