bug fix
This commit is contained in:
@@ -30,7 +30,7 @@ export async function createTask(
|
||||
});
|
||||
|
||||
return await taskModel
|
||||
.find({ pid: task.pid })
|
||||
.findOne({ pid: task.pid })
|
||||
.populate({ path: 'createdBy', select: 'pid name avatar' })
|
||||
.populate({ path: 'assignedTo', select: 'pid name avatar' });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user