Kaynağa Gözat

added validation

Steven Fukase 4 yıl önce
ebeveyn
işleme
9df6a62c6b

+ 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()