diff --git a/apps/api/src/routes/staff.ts b/apps/api/src/routes/staff.ts index 4f5498c..3aa2f1a 100644 --- a/apps/api/src/routes/staff.ts +++ b/apps/api/src/routes/staff.ts @@ -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)