fix: add eventTypeId and eventTypeSlug guard (#25773)

* fix: add eventTypeId and eventTypeSlug guard

* chore: update test

* refactor: improvemnt

* revert:

---------

Co-authored-by: Syed Ali Shahbaz <[email protected]>
This commit is contained in:
Udit TakkarandSyed Ali Shahbaz authored and GitHub committed 2025-12-30 10:33:38 -03:00
1 parent c52eff65a2
commit 2c7cb530a1
2 files changed
+8 -1

No files matched your search

+3 -1
View File
@@ -245,7 +245,9 @@ describe("POST /api/bookings", () => {
const { req, res } = createMocks<CustomNextApiRequest, CustomNextApiResponse>({
method: "POST",
body: {},
body: {
eventTypeId: 2,
},
});
await handler(req, res);