Default to connected Salesforce account as owner (#16747)
This commit is contained in:
@@ -303,7 +303,7 @@ export default class SalesforceCRMService implements CRM {
|
||||
let organizerId: string;
|
||||
if (organizerEmail) {
|
||||
const userQuery = await this.getSalesforceUserFromEmail(organizerEmail);
|
||||
if (userQuery) {
|
||||
if (userQuery.records.length > 0) {
|
||||
organizerId = (userQuery.records[0] as { Email: string; Id: string }).Id;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user