Skip to content

Scheduling infrastructure for absolutely everyone.

We need to choose contact owner when crm app slug is not present (#17684)

Hariom Balhara22da681f8c03
diff --git a/apps/web/lib/getTeamMemberEmailFromCrm.ts b/apps/web/lib/getTeamMemberEmailFromCrm.ts
index 38c492201bf..95dbb5ad137 100644
--- a/apps/web/lib/getTeamMemberEmailFromCrm.ts
+++ b/apps/web/lib/getTeamMemberEmailFromCrm.ts
@@ -178,7 +178,7 @@ async function getTeamMemberEmailForResponseOrContact({
* If provided, we won't go look for the route from DB.
*/
chosenRoute?: LocalRoute;
- crmAppSlug: string;
+ crmAppSlug?: string;
}) {
if (eventData.schedulingType !== SchedulingType.ROUND_ROBIN) return null;
@@ -231,7 +231,6 @@ export async function getTeamMemberEmailForResponseOrContactUsingUrlQuery({
log.debug("getTeamMemberEmailForResponseOrContactUsingUrlQuery", safeStringify({ query }));
const crmAppSlug = getEnabledRoutingFormAppSlugFromQuery(query);
- if (!crmAppSlug) return null;
const routingFormResponseId = getRoutingFormResponseIdFromQuery(query);