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