fix: disable mandatory reminder for platform (#17998)

* fix: disable mandatory reminder for platform

* bump libraries version

* fixup! bump libraries version
This commit is contained in:
Morgan
2024-12-04 12:33:53 +00:00
committed by GitHub
parent e2938ac39a
commit eaff9e8c89
4 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -29,7 +29,7 @@
"@axiomhq/winston": "^1.2.0",
"@calcom/platform-constants": "*",
"@calcom/platform-enums": "*",
"@calcom/platform-libraries": "npm:@calcom/platform-libraries@0.0.67",
"@calcom/platform-libraries": "npm:@calcom/platform-libraries@0.0.69",
"@calcom/platform-libraries-0.0.2": "npm:@calcom/platform-libraries@0.0.2",
"@calcom/platform-types": "*",
"@calcom/platform-utils": "*",
@@ -343,7 +343,8 @@ export async function handleConfirmation(args: {
workflows,
false,
!!updatedBookings[index].eventType?.owner?.hideBranding,
evt.attendeeSeatId
evt.attendeeSeatId,
!emailsEnabled && Boolean(platformClientParams?.platformClientId)
);
}
@@ -1888,7 +1888,8 @@ async function handler(
workflows,
!isConfirmedByDefault,
!!eventType.owner?.hideBranding,
evt.attendeeSeatId
evt.attendeeSeatId,
noEmail && Boolean(platformClientId)
);
}
@@ -16,8 +16,10 @@ export async function scheduleMandatoryReminder(
workflows: Workflow[],
requiresConfirmation: boolean,
hideBranding: boolean,
seatReferenceUid: string | undefined
seatReferenceUid: string | undefined,
isPlatformNoEmail = false
) {
if (isPlatformNoEmail) return;
try {
const hasExistingWorkflow = workflows.some((workflow) => {
return (