fix(api): auto-link staff to Better-Auth user via email on first SSO login (GRO-480) #231

Merged
groombook-engineer[bot] merged 3 commits from fix/gro-478-auto-link-staff-user into main 2026-04-05 15:05:51 +00:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit e39924b236 - Show all commits
+1 -2
View File
@@ -1,6 +1,5 @@
import type { MiddlewareHandler } from "hono";
import { isNull } from "drizzle-orm";
import { and, eq, getDb, staff } from "@groombook/db";
import { and, eq, getDb, isNull, staff } from "@groombook/db";
export type StaffRole = "groomer" | "receptionist" | "manager";
export type StaffRow = typeof staff.$inferSelect;
+1 -1
View File
@@ -4,7 +4,7 @@ import * as schema from "./schema.js";
export * from "./schema.js";
export { encryptSecret, decryptSecret } from "./crypto.js";
export { and, asc, desc, eq, exists, gte, gt, ilike, inArray, lt, lte, ne, or, sql } from "drizzle-orm";
export { and, asc, desc, eq, exists, gte, gt, ilike, inArray, isNull, lt, lte, ne, or, sql } from "drizzle-orm";
let _db: ReturnType<typeof drizzle> | null = null;