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

This commit is contained in:
Hariom Balhara
2024-11-16 09:02:24 +00:00
committed by GitHub
parent f4f4afad39
commit 22da681f8c
+1 -2
View File
@@ -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);