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

slackBotSigningSecret to addSlackBotSigningSecret

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

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

@@ -31,12 +31,12 @@ module.exports = (crowi) => {
     return next();
   }
 
-  const slackBotSigningSecret = (req, res, next) => {
+  const addSlackBotSigningSecret = (req, res, next) => {
     req.signingSecret = crowi.configManager.getConfig('crowi', 'slackbot:signingSecret');
     return next();
   };
 
-  router.post('/', verificationRequestUrl, slackBotSigningSecret, verifyingIsSlackRequest, verificationAccessToken, async(req, res) => {
+  router.post('/', verificationRequestUrl, addSlackBotSigningSecret, verifyingIsSlackRequest, verificationAccessToken, async(req, res) => {
 
     // Send response immediately to avoid opelation_timeout error
     // See https://api.slack.com/apis/connections/events-api#the-events-api__responding-to-events
@@ -98,7 +98,7 @@ module.exports = (crowi) => {
     }
   };
 
-  router.post('/interactive', verificationRequestUrl, slackBotSigningSecret, verifyingIsSlackRequest, async(req, res) => {
+  router.post('/interactive', verificationRequestUrl, addSlackBotSigningSecret, verifyingIsSlackRequest, async(req, res) => {
 
     // Send response immediately to avoid opelation_timeout error
     // See https://api.slack.com/apis/connections/events-api#the-events-api__responding-to-events