fix: payment not working in booker (#18540)
* fix: payment not working in booker * Update transformApiEventTypeForAtom.ts --------- Co-authored-by: Rajiv Sahal <sahalrajiv-extc@atharvacoe.ac.in>
This commit is contained in:
co-authored by
Rajiv Sahal
parent
8a8c870513
commit
2ba6f4cb24
+6
@@ -29,6 +29,7 @@ import {
|
||||
bookerLayouts as bookerLayoutsSchema,
|
||||
userMetadata as userMetadataSchema,
|
||||
eventTypeBookingFields,
|
||||
EventTypeMetaDataSchema,
|
||||
} from "@calcom/prisma/zod-utils";
|
||||
|
||||
import type { BookerPlatformWrapperAtomProps } from "../../booker/BookerPlatformWrapper";
|
||||
@@ -68,6 +69,7 @@ export function transformApiEventTypeForAtom(
|
||||
const bookerLayouts = bookerLayoutsSchema.parse(
|
||||
firstUsersMetadata?.defaultBookerLayouts || defaultEventBookerLayouts
|
||||
);
|
||||
const metadata = EventTypeMetaDataSchema.parse(eventType.metadata);
|
||||
|
||||
return {
|
||||
...rest,
|
||||
@@ -129,6 +131,7 @@ export function transformApiEventTypeForAtom(
|
||||
: undefined,
|
||||
|
||||
metadata: {
|
||||
...metadata,
|
||||
requiresConfirmationThreshold:
|
||||
confirmationPolicyTransformed?.requiresConfirmationThreshold ?? undefined,
|
||||
multipleDuration: lengthInMinutesOptions,
|
||||
@@ -171,6 +174,8 @@ export function transformApiTeamEventTypeForAtom(
|
||||
...rest
|
||||
} = eventType;
|
||||
|
||||
const metadata = EventTypeMetaDataSchema.parse(eventType.metadata);
|
||||
|
||||
const isDefault = isDefaultEvent(rest.title);
|
||||
|
||||
const confirmationPolicyTransformed = transformConfirmationPolicyApiToInternal(confirmationPolicy);
|
||||
@@ -257,6 +262,7 @@ export function transformApiTeamEventTypeForAtom(
|
||||
: undefined,
|
||||
|
||||
metadata: {
|
||||
...metadata,
|
||||
requiresConfirmationThreshold:
|
||||
confirmationPolicyTransformed?.requiresConfirmationThreshold ?? undefined,
|
||||
multipleDuration: lengthInMinutesOptions,
|
||||
|
||||
Reference in New Issue
Block a user