+
-
-
-
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),