feat(staff): super user grant/revoke UI with last-user guardrail (GRO-206) #155

Closed
groombook-engineer[bot] wants to merge 7 commits from feat/gro-198-super-user-ui into main
Showing only changes of commit 8c154e82f4 - Show all commits
+1 -1
View File
@@ -158,7 +158,7 @@ staffRouter.delete("/:id", async (c) => {
}
// Prevent deleting the last super user — use transaction to avoid race
const [guardError, deleted] = await db.transaction(async (tx) => {
const [guardError] = await db.transaction(async (tx) => {
const [targetStaff] = await tx
.select({ isSuperUser: staff.isSuperUser })
.from(staff)