create alerts when user is assignedTo a resource
This commit is contained in:
@@ -213,7 +213,7 @@ export async function updateRts(
|
||||
.populate({ path: "client", select: "pid name avatar" })
|
||||
.populate({ path: "assignedTo", select: "pid name avatar" });
|
||||
|
||||
if (input.assignedTo) {
|
||||
if (updatedRts && input.assignedTo) {
|
||||
await createAlert(
|
||||
user.tenantId,
|
||||
`You are assigned to RTS`,
|
||||
|
||||
Reference in New Issue
Block a user