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.
2 parents b023b38 + c155e6c commit 3ffc3bfCopy full SHA for 3ffc3bf
controllers/tasks.js
@@ -57,7 +57,7 @@ const getUserTasks = async (req, res) => {
57
const { username } = req.params
58
let allTasks = []
59
60
- if (!Object.values(TASK_STATUS).includes(status)) {
+ if (status && !Object.values(TASK_STATUS).includes(status)) {
61
return res.boom.notFound('Status not found!')
62
}
63
0 commit comments