fix(GRO-213): resolve remaining type and lint errors blocking CI

- Remove unused 'exists' import from setup.ts (fixes @typescript-eslint/no-unused-vars)
- Cast result.code to 'number' instead of literal '409' to satisfy
  ContentfulStatusCode type (fixes TS2769 overload error)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
groombook-ci[bot]
2026-03-28 21:09:50 +00:00
committed by Flea Flicker
parent 3b1212250a
commit 21df02eef8
+2 -2
View File
@@ -1,7 +1,7 @@
import { Hono } from "hono";
import { zValidator } from "@hono/zod-validator";
import { z } from "zod/v3";
import { eq, exists, getDb, staff, businessSettings } from "@groombook/db";
import { eq, getDb, staff, businessSettings } from "@groombook/db";
import type { AppEnv } from "../middleware/rbac.js";
export const setupRouter = new Hono<AppEnv>();
@@ -70,7 +70,7 @@ setupRouter.post("/", zValidator("json", setupSchema), async (c) => {
});
if ("error" in result) {
return c.json({ error: result.error }, result.code as 409);
return c.json({ error: result.error }, result.code as number);
}
return c.json({ ok: true, staff: result.staff }, 201);