소스 검색

fix general to channel

zahmis 5 년 전
부모
커밋
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}`,
           channel: `#${channel}`,
           text: 'Your test was successful!',
           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
         // 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 });
         return res.apiv3({ message });
       }
       }
       catch (error) {
       catch (error) {