fixed alerts bug
This commit is contained in:
@@ -80,9 +80,9 @@ export async function updateNotification(
|
|||||||
|
|
||||||
await createAlert(
|
await createAlert(
|
||||||
user.tenantId,
|
user.tenantId,
|
||||||
``,
|
`You are assigned to ${updateNotificationResult.permitNumber}`,
|
||||||
"user",
|
"user",
|
||||||
user.userId,
|
input.assignedTo,
|
||||||
updateNotificationResult.permitId,
|
updateNotificationResult.permitId,
|
||||||
"permits"
|
"permits"
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ export async function updatePermit(
|
|||||||
user.tenantId,
|
user.tenantId,
|
||||||
`You are assigned to ${updatePermitResult.permitNumber}`,
|
`You are assigned to ${updatePermitResult.permitNumber}`,
|
||||||
"user",
|
"user",
|
||||||
user.userId,
|
input.assignedTo,
|
||||||
updatePermitResult.pid,
|
updatePermitResult.pid,
|
||||||
"permits"
|
"permits"
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ export async function updateRts(
|
|||||||
user.tenantId,
|
user.tenantId,
|
||||||
`You are assigned to RTS`,
|
`You are assigned to RTS`,
|
||||||
"user",
|
"user",
|
||||||
user.userId,
|
input.assignedTo,
|
||||||
updatedRts.pid,
|
updatedRts.pid,
|
||||||
"rts"
|
"rts"
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export async function updateTask(
|
|||||||
user.tenantId,
|
user.tenantId,
|
||||||
`You are assigned to ${updatedTask.title}`,
|
`You are assigned to ${updatedTask.title}`,
|
||||||
"user",
|
"user",
|
||||||
user.userId,
|
input.assignedTo,
|
||||||
updatedTask.pid,
|
updatedTask.pid,
|
||||||
"tasks"
|
"tasks"
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user