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

@@ -149,6 +149,7 @@ export async function listPermits(
jobNumber: 1,
startDate: 1,
history: 1,
taggedUsers: 1,
assignedTo: {
$let: {
vars: { assigned: { $arrayElemAt: ["$assignedRec", 0] } },
@@ -365,6 +366,7 @@ export async function searchPermit(
jobNumber: 1,
startDate: 1,
history: 1,
taggedUsers: 1,
assignedTo: {
$let: {
vars: { assigned: { $arrayElemAt: ["$assignedRec", 0] } },