♻️ set blocked to true if approvalState is set to denied

This commit is contained in:
Fred KISSIE
2026-01-15 01:12:38 +01:00
parent 9040f9b82a
commit c910a715bd

View File

@@ -115,7 +115,8 @@ export async function processPendingApproval(
await db
.update(clients)
.set({
approvalState: updateData.decision
approvalState: updateData.decision,
blocked: updateData.decision == "denied"
})
.where(eq(clients.clientId, updatedApproval.clientId));
}