feat: return taggedUsers in all list endpoints

This commit is contained in:
2025-09-03 11:15:38 +05:30
parent 4bd3e917c2
commit dd20543dc6
6 changed files with 9 additions and 1 deletions

View File

@@ -141,6 +141,7 @@ export async function listTasks(
documents: 1,
stage: 1,
createdAt: 1,
taggedUsers: 1,
createdBy: {
$let: {
vars: { createdBy: { $arrayElemAt: ["$createdBy", 0] } },
@@ -236,6 +237,7 @@ export async function searchTasks(params: PageQueryParams, tenantId: string) {
documents: 1,
stage: 1,
createdAt: 1,
taggedUsers: 1,
createdBy: {
$let: {
vars: { createdBy: { $arrayElemAt: ["$createdBy", 0] } },