We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b15ee6 commit 9322b5bCopy full SHA for 9322b5b
controllers/tasks.js
@@ -57,7 +57,7 @@ const getUserTasks = async (req, res) => {
57
const { username } = req.params
58
let allTasks = []
59
60
- if (status && !Object.values(TASK_STATUS).includes(status)) {
+ if (status !== undefined && !Object.values(TASK_STATUS).includes(status)) {
61
return res.boom.notFound('Status not found!')
62
}
63
0 commit comments