add notification create route, update permit update rotue

This commit is contained in:
2025-03-27 11:08:49 +05:30
parent 300e67bcb7
commit 3e68d594d2
7 changed files with 70 additions and 4 deletions

View File

@@ -156,7 +156,7 @@ export async function updatePermit(
{
$and: [{ tenantId: user.tenantId }, { pid: permitId }],
},
{ ...input, updatedAt: new Date() },
{ ...input, lastUpdateDate: new Date() },
{ new: true }
)
.populate({ path: "county", select: "pid name avatar" })