Fix - add team members to emails (#7207)
* 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 <[email protected]> * Remove booking select object * Revert "Remove booking select object" This reverts commit 9f121ff4ebbaec9a0643111f96c5337b930ddd5b. * Refactor email manager (#7270) Co-authored-by: zomars <[email protected]> * Type change * Remove conditional check for updateAllCalendarEvents --------- Co-authored-by: zomars <[email protected]>
This commit is contained in:
1 parent
2a98ca4b91
commit
8b07b839e9
23 files changed
+267
-349
No files matched your search
@@ -255,7 +255,6 @@ export default class EventManager {
|
||||
results.push(result);
|
||||
}
|
||||
|
||||
// Update all calendar events.
|
||||
results.push(...(await this.updateAllCalendarEvents(evt, booking)));
|
||||
|
||||
const bookingPayment = booking?.payment;
|
||||
@@ -442,7 +441,7 @@ export default class EventManager {
|
||||
// Bookings should only have one calendar reference
|
||||
calendarReference = booking.references.filter((reference) => reference.type.includes("_calendar"))[0];
|
||||
if (!calendarReference) {
|
||||
throw new Error("bookingRef");
|
||||
return [];
|
||||
}
|
||||
const { uid: bookingRefUid, externalCalendarId: bookingExternalCalendarId } = calendarReference;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DestinationCalendar } from "@prisma/client";
|
||||
import type { DestinationCalendar } from "@prisma/client";
|
||||
|
||||
import type {
|
||||
AdditionalInformation,
|
||||
@@ -16,7 +16,7 @@ class CalendarEventClass implements CalendarEvent {
|
||||
organizer!: Person;
|
||||
attendees!: Person[];
|
||||
description?: string | null;
|
||||
team?: { name: string; members: string[] };
|
||||
team?: { name: string; members: Person[] };
|
||||
location?: string | null;
|
||||
conferenceData?: ConferenceData;
|
||||
additionalInformation?: AdditionalInformation;
|
||||
|
||||
Reference in new issue
Block a user