* On booking add team members & translation * Add team members to round robin create * Only update calendars on reschedule if there is a calendar reference * Send email on reschedules * Send team email on cancelled event * Add team members to calendar event description * Clean up * Convert other emails to organizer & teams * Type check fixes * More type fixes * Change organizer scheduled input to an object * early return updateCalendarEvent * Introduce team member type * Fix type errors * Put team members before attendees * Remove lodash cloneDeep * Update packages/core/EventManager.ts Co-authored-by: Omar López <zomars@me.com> * Remove booking select object * Revert "Remove booking select object" This reverts commit 9f121ff4ebbaec9a0643111f96c5337b930ddd5b. * Refactor email manager (#7270) Co-authored-by: zomars <zomars@me.com> * Type change * Remove conditional check for updateAllCalendarEvents --------- Co-authored-by: zomars <zomars@me.com>
30 lines
1012 B
TypeScript
30 lines
1012 B
TypeScript
import { APP_NAME } from "@calcom/lib/constants";
|
|
|
|
import { renderEmail } from "../";
|
|
import OrganizerScheduledEmail from "./organizer-scheduled-email";
|
|
|
|
export default class OrganizerLocationChangeEmail extends OrganizerScheduledEmail {
|
|
protected getNodeMailerPayload(): Record<string, unknown> {
|
|
const toAddresses = [this.teamMember?.email || this.calEvent.organizer.email];
|
|
|
|
return {
|
|
icalEvent: {
|
|
filename: "event.ics",
|
|
content: this.getiCalEventAsString(),
|
|
},
|
|
from: `${APP_NAME} <${this.getMailerOptions().from}>`,
|
|
to: toAddresses.join(","),
|
|
subject: `${this.t("location_changed_event_type_subject", {
|
|
eventType: this.calEvent.type,
|
|
name: this.calEvent.attendees[0].name,
|
|
date: this.getFormattedDate(),
|
|
})}`,
|
|
html: renderEmail("OrganizerLocationChangeEmail", {
|
|
attendee: this.calEvent.organizer,
|
|
calEvent: this.calEvent,
|
|
}),
|
|
text: this.getTextBody("event_location_changed"),
|
|
};
|
|
}
|
|
}
|