1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-11 00:10:06 +00:00

chore: modified folderParamValidation method

This commit is contained in:
2022-07-21 14:08:44 +05:00
parent efcefd2a42
commit 72140d73c2
2 changed files with 6 additions and 3 deletions

View File

@@ -152,7 +152,7 @@ driveRouter.delete('/file', async (req, res) => {
})
driveRouter.delete('/folder', async (req, res) => {
const { error: errQ, value: query } = folderParamValidation(req.query)
const { error: errQ, value: query } = folderParamValidation(req.query, true)
if (errQ) return res.status(400).send(errQ.details[0].message)