diff --git a/apps/web/src/routes/admin/index.tsx b/apps/web/src/routes/admin/index.tsx index 8dcf184..a366ed0 100644 --- a/apps/web/src/routes/admin/index.tsx +++ b/apps/web/src/routes/admin/index.tsx @@ -392,10 +392,10 @@ function AdminPage() { return (
- {/* ── Top bar ── */} -
-
-
+
+ {/* ── Utility row ── */} +
+
-
- -
{/* ── Pending admin requests ── */} {pendingRequests.length > 0 && (
diff --git a/packages/api/src/routers/index.ts b/packages/api/src/routers/index.ts index 688b9ae..f565d27 100644 --- a/packages/api/src/routers/index.ts +++ b/packages/api/src/routers/index.ts @@ -5,7 +5,18 @@ import { user } from "@kk/db/schema/auth"; import { drinkkaart, drinkkaartTopup } from "@kk/db/schema/drinkkaart"; import { env } from "@kk/env/server"; import type { RouterClient } from "@orpc/server"; -import { and, count, desc, eq, gte, isNull, like, lte, sum } from "drizzle-orm"; +import { + and, + count, + desc, + eq, + gte, + isNull, + like, + lte, + or, + sum, +} from "drizzle-orm"; import { z } from "zod"; import { sendCancellationEmail, @@ -426,7 +437,7 @@ export const appRouter = { if (input.search) { const term = `%${input.search}%`; conditions.push( - and( + or( like(registration.firstName, term), like(registration.lastName, term), like(registration.email, term),