feat: add metaFields to alerts
This commit is contained in:
@@ -244,8 +244,8 @@ export async function updateRts(
|
||||
new: true,
|
||||
})
|
||||
.populate({ path: "createdBy", select: "pid name avatar" })
|
||||
.populate({ path: "county", select: "pid name avatar" })
|
||||
.populate({ path: "client", select: "pid name avatar" })
|
||||
.populate({ path: "county", select: "_id pid name avatar" })
|
||||
.populate({ path: "client", select: "_id pid name avatar" })
|
||||
.populate({ path: "assignedTo", select: "pid name avatar" });
|
||||
|
||||
if (updateRts && input.permitType) {
|
||||
@@ -278,7 +278,14 @@ export async function updateRts(
|
||||
"user",
|
||||
assignee,
|
||||
updatedRts.pid,
|
||||
"rts"
|
||||
"rts",
|
||||
{
|
||||
//@ts-ignore
|
||||
client: updatedRts.client._id.toString(),
|
||||
//@ts-ignore
|
||||
county: updatedRts.county._id.toString(),
|
||||
permitType: updatedRts.permitType,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user