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;