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:
1 parent
c52eff65a2
commit
2c7cb530a1
2 files changed
+8
-1
No files matched your search
@@ -245,7 +245,9 @@ describe("POST /api/bookings", () => {
|
||||
|
||||
const { req, res } = createMocks<CustomNextApiRequest, CustomNextApiResponse>({
|
||||
method: "POST",
|
||||
body: {},
|
||||
body: {
|
||||
eventTypeId: 2,
|
||||
},
|
||||
});
|
||||
|
||||
await handler(req, res);
|
||||
|
||||
Reference in new issue
Block a user