Skip to content

Commit 5ec02eb

Browse files
committed
fix: validation
1 parent 7bc10d6 commit 5ec02eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middlewares/validators/user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ async function getUsers(req, res, next) {
197197
query: joi.string().optional(),
198198
q: joi.string().optional(),
199199
profile: joi.string().valid("true").optional(),
200-
profileStatus: joi.string().trim().uppercase().optional().messages({
200+
profileStatus: joi.string().optional().messages({
201201
"string.empty": "profileStatus value must not be empty",
202202
}),
203203
filterBy: joi.string().optional(),

0 commit comments

Comments
 (0)