From 3bbbc805110fbf073a4d2101af30e8809b9abf50 Mon Sep 17 00:00:00 2001 From: Leo Giovanetti Date: Wed, 11 May 2022 10:12:59 -0300 Subject: [PATCH] Hotfix: Success page for recurring event (#2725) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Merge pull request #2672 from calcom/main v1.5.4 * Turbo fixes * Make apps single pages public * Fix preview.html not built and thus served during depooy (#2713) * Hotfix: Success page layout broken due to duplicate "When" (#2716) * Update BookingPage.tsx * Reverting unchaged lines * Fixing recurrenceRule for ICS files Co-authored-by: Omar López Co-authored-by: Hariom Balhara --- apps/web/lib/emails/templates/attendee-scheduled-email.ts | 2 +- apps/web/lib/emails/templates/organizer-scheduled-email.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/lib/emails/templates/attendee-scheduled-email.ts b/apps/web/lib/emails/templates/attendee-scheduled-email.ts index 7df5395221..1a95899074 100644 --- a/apps/web/lib/emails/templates/attendee-scheduled-email.ts +++ b/apps/web/lib/emails/templates/attendee-scheduled-email.ts @@ -60,7 +60,7 @@ export default class AttendeeScheduledEmail { // Taking care of recurrence rule beforehand let recurrenceRule: string | undefined = undefined; if (this.recurringEvent?.count) { - recurrenceRule = new rrule(this.recurringEvent).toString(); + recurrenceRule = new rrule(this.recurringEvent).toString().replace("RRULE:", ""); } const icsEvent = createEvent({ start: dayjs(this.calEvent.startTime) diff --git a/apps/web/lib/emails/templates/organizer-scheduled-email.ts b/apps/web/lib/emails/templates/organizer-scheduled-email.ts index 5b62f46092..fe9381a76a 100644 --- a/apps/web/lib/emails/templates/organizer-scheduled-email.ts +++ b/apps/web/lib/emails/templates/organizer-scheduled-email.ts @@ -57,7 +57,7 @@ export default class OrganizerScheduledEmail { // Taking care of recurrence rule beforehand let recurrenceRule: string | undefined = undefined; if (this.recurringEvent?.count) { - recurrenceRule = new rrule(this.recurringEvent).toString(); + recurrenceRule = new rrule(this.recurringEvent).toString().replace("RRULE:", ""); } const icsEvent = createEvent({ start: dayjs(this.calEvent.startTime)