From a2b2c12700b3518d87d769243014a8d07101dde1 Mon Sep 17 00:00:00 2001 From: Shreenija Reddy Daggavolu Date: Tue, 9 Jul 2024 01:30:14 -0500 Subject: [PATCH] all files --- src/services/admin/admin-schema.ts | 8 -------- src/services/checkin/checkin-router.ts | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) delete mode 100644 src/services/admin/admin-schema.ts diff --git a/src/services/admin/admin-schema.ts b/src/services/admin/admin-schema.ts deleted file mode 100644 index c0b7c0a..0000000 --- a/src/services/admin/admin-schema.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { z } from "zod"; - -const ScanValidator = z.object({ - eventId: z.string(), - qrCode: z.string(), -}); - -export { ScanValidator }; diff --git a/src/services/checkin/checkin-router.ts b/src/services/checkin/checkin-router.ts index d779339..76f336f 100644 --- a/src/services/checkin/checkin-router.ts +++ b/src/services/checkin/checkin-router.ts @@ -1,6 +1,6 @@ import { Router } from "express"; import { StatusCodes } from "http-status-codes"; -import { ScanValidator } from "../admin/admin-schema"; +import { ScanValidator } from "./checkin-schema"; import { Database } from "../../database"; import RoleChecker from "../../middleware/role-checker"; import { Role } from "../auth/auth-models"; @@ -40,4 +40,4 @@ adminRouter.post( } ); -export default adminRouter; \ No newline at end of file +export default adminRouter;