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 d77bfd8 commit 06180a4Copy full SHA for 06180a4
controllers/tasks.js
@@ -143,7 +143,7 @@ const fetchTasks = async (req, res) => {
143
const tasksWithRdsAssigneeInfo = await fetchTasksWithRdsAssigneeInfo(filterTasks);
144
return res.json({
145
message: "Filter tasks returned successfully!",
146
- ...tasksWithRdsAssigneeInfo,
+ tasks: tasksWithRdsAssigneeInfo.length > 0 ? tasksWithRdsAssigneeInfo : [],
147
});
148
}
149
0 commit comments