zahmis 4 years ago
parent
commit
4171209316
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/app/src/server/routes/apiv3/slack-integration.js

+ 2 - 2
packages/app/src/server/routes/apiv3/slack-integration.js

@@ -78,7 +78,7 @@ module.exports = (crowi) => {
     return { permissionsForBroadcastUseCommands, permissionsForSingleUseCommands };
   }
 
-  async function checkCommandPermission(req, res, next) {
+  async function checkCommandsPermission(req, res, next) {
     if (req.body.text == null) { // when /relation-test
       return next();
     }
@@ -177,7 +177,7 @@ module.exports = (crowi) => {
     return handleCommands(req, res, client);
   });
 
-  router.post('/proxied/commands', verifyAccessTokenFromProxy, checkCommandPermission, async(req, res) => {
+  router.post('/proxied/commands', verifyAccessTokenFromProxy, checkCommandsPermission, async(req, res) => {
     const { body } = req;
     // eslint-disable-next-line max-len
     // see: https://api.slack.com/apis/connections/events-api#the-events-api__subscribing-to-event-types__events-api-request-urls__request-url-configuration--verification