chore: Couple fixes to improve error reporting (#16895)
* chore: Couple fixes to improve error reporting * tweak: Fix error message * refactor: Use findUniqueOrThrow instead of guard * fix: Broken test, missing ID - suspect it passes because only one record exists * chore: Minor refactor to split ZodEffect from ZodType * fix: Satify typescript
This commit is contained in:
1 parent
4b6a389212
commit
a95729f4a1
9 files changed
+31
-28
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import type z from "zod";
|
||||
|
||||
import type { schemaBookingCancelParams } from "@calcom/prisma/zod-utils";
|
||||
import type { bookingCancelSchema } from "@calcom/prisma/zod-utils";
|
||||
|
||||
export function getMockRequestDataForCancelBooking(data: z.infer<typeof schemaBookingCancelParams>) {
|
||||
export function getMockRequestDataForCancelBooking(data: z.infer<typeof bookingCancelSchema>) {
|
||||
return data;
|
||||
}
|
||||
Reference in new issue
Block a user