fix: meeting not created on hubspot for contacts (#17661)

This commit is contained in:
Anik Dhabal Babu
2024-11-15 13:18:17 +00:00
committed by GitHub
parent c59e733b5a
commit 7f2db48c72
+1 -1
View File
@@ -29,7 +29,7 @@ export default class CrmManager {
public async createEvent(event: CalendarEvent, appOptions?: any) {
const crmService = await this.getCrmService(this.credential);
const { skipContactCreation } = crmService?.getAppOptions();
const { skipContactCreation } = crmService?.getAppOptions() || {};
// First see if the attendees already exist in the crm
let contacts = (await this.getContacts({ emails: event.attendees.map((a) => a.email) })) || [];
// Ensure that all attendees are in the crm