mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
♻️ set blocked to true if approvalState is set to denied
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user