This commit is contained in:
2025-04-22 16:47:35 +05:30
parent ae287c799c
commit c003a1513c

View File

@@ -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' });
}