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 57172f5 commit 22fef8aCopy full SHA for 22fef8a
controllers/tasks.js
@@ -178,7 +178,7 @@ const updateTask = async (req, res) => {
178
if (!task.taskData) {
179
return res.boom.notFound("Task not found");
180
}
181
- if (req.body.assignee) {
+ if (req.body?.assignee) {
182
const user = await userQuery.fetchUser({ username: req.body.assignee });
183
if (!user.userExists) {
184
return res.boom.notFound("User doesn't exist");
0 commit comments