Skip to content

Commit

Permalink
fix: Reschedule email for RR event shows wrong timezone to attendee (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
anikdhabal authored Dec 20, 2024
1 parent 4f66f3d commit 2cfc63e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/emails/templates/organizer-rescheduled-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,20 @@ export default class OrganizerRescheduledEmail extends OrganizerScheduledEmail {
title: this.calEvent.title,
date: this.getFormattedDate(),
})}`,
html: await this.getHtml({ ...this.calEvent, attendeeSeatId: undefined }, this.calEvent.organizer),
html: await this.getHtml(
{ ...this.calEvent, attendeeSeatId: undefined },
this.calEvent.organizer,
this.teamMember
),
text: this.getTextBody("event_has_been_rescheduled"),
};
}

async getHtml(calEvent: CalendarEvent, attendee: Person) {
async getHtml(calEvent: CalendarEvent, attendee: Person, teamMember?: Person) {
return await renderEmail("OrganizerRescheduledEmail", {
calEvent,
attendee,
teamMember,
});
}
}

0 comments on commit 2cfc63e

Please sign in to comment.