mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-07 11:16:37 +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
|
await db
|
||||||
.update(clients)
|
.update(clients)
|
||||||
.set({
|
.set({
|
||||||
approvalState: updateData.decision
|
approvalState: updateData.decision,
|
||||||
|
blocked: updateData.decision == "denied"
|
||||||
})
|
})
|
||||||
.where(eq(clients.clientId, updatedApproval.clientId));
|
.where(eq(clients.clientId, updatedApproval.clientId));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user