bug fixes, schema updates

This commit is contained in:
2025-02-06 15:33:47 +05:30
parent 42d68615d2
commit f4a6aaab46
6 changed files with 166 additions and 25 deletions

View File

@@ -87,6 +87,8 @@ export async function listTasks(params: PageQueryParams, tenantId: string) {
$project: {
_id: 1,
pid: 1,
title: 1,
dueDate: 1,
createdAt: 1,
createdBy: {
$let: {
@@ -98,7 +100,7 @@ export async function listTasks(params: PageQueryParams, tenantId: string) {
},
},
},
client: {
assignedTo: {
$let: {
vars: { assignedTo: { $arrayElemAt: ["$assignedTo", 0] } },
in: {