Delete array/brackets in /v2/secrets DELETE route

This commit is contained in:
Tuan Dang
2023-01-10 15:21:50 +07:00
parent b71ba35a22
commit cc46b575b7
+1 -3
View File
@@ -137,7 +137,6 @@ router.patch(
router.delete(
'/',
[
body('secretIds')
.exists()
.custom((value) => {
@@ -153,8 +152,7 @@ router.delete(
throw new Error('secretIds must be a string or an array of strings');
})
.not()
.isEmpty()
],
.isEmpty(),
validateRequest,
requireAuth({
acceptedAuthModes: ['jwt']