fix: don't send alert when assignedTo is null

This commit is contained in:
2025-07-30 15:23:37 +05:30
parent 9ae52d4c25
commit 85d98250a7

View File

@@ -209,7 +209,7 @@ export async function updatePermit(
user user
); );
if (key == "assignedTo") { if (key == "assignedTo" && input[key] != null) {
await createAlert( await createAlert(
user.tenantId, user.tenantId,
`You are assigned to ${updatePermitResult.permitNumber}`, `You are assigned to ${updatePermitResult.permitNumber}`,