bug fixes, schema updates
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user