Skip to content

Commit 94bf65a

Browse files
committed
Fix: Changed the validation type of orphaned to boolean instead of string.
1 parent 1ac276d commit 94bf65a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middlewares/validators/tasks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ const getTasksValidator = async (req, res, next) => {
193193
return value;
194194
}, "Invalid query format"),
195195
userFeatureFlag: joi.string().optional(),
196-
orphaned: joi.string().optional(),
196+
orphaned: joi.boolean().optional(),
197197
});
198198

199199
try {

0 commit comments

Comments
 (0)