Browse Source

added validation

Steven Fukase 5 years ago
parent
commit
9df6a62c6b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/routes/apiv3/slack-integration-settings.js

+ 1 - 1
src/server/routes/apiv3/slack-integration-settings.js

@@ -71,7 +71,7 @@ module.exports = (crowi) => {
       body('slackappintegrationsId').isMongoId(),
     ],
     deleteIntegration: [
-      query('integrationIdToDelete').isMongoId(),
+      query('integrationIdToDelete').isMongoId().not().isEmpty(),
     ],
     SlackChannel: [
       body('channel').trim().not().isEmpty()