@@ -164,7 +164,7 @@ async function getTeamMemberEmailUsingRoutingFormHandler({
164164 attributeRoutingConfig : AttributeRoutingConfig | null ;
165165 crmAppSlug : string ;
166166} ) {
167- const nullReturnValue = { email : null , skipContactOwner : false , recordType : "" } ;
167+ const nullReturnValue = { email : null , skipContactOwner : false , recordType : "" , recordId : "" } ;
168168
169169 if ( ! attributeRoutingConfig ) return nullReturnValue ;
170170
@@ -176,7 +176,11 @@ async function getTeamMemberEmailUsingRoutingFormHandler({
176176 const appHandler = appBookingFormHandler [ crmAppSlug ] ;
177177 if ( ! appHandler ) return nullReturnValue ;
178178
179- const { email : userEmail , recordType } = await appHandler ( bookerEmail , attributeRoutingConfig , eventTypeId ) ;
179+ const {
180+ email : userEmail ,
181+ recordType,
182+ recordId,
183+ } = await appHandler ( bookerEmail , attributeRoutingConfig , eventTypeId ) ;
180184
181185 if ( ! userEmail ) return nullReturnValue ;
182186
@@ -185,7 +189,7 @@ async function getTeamMemberEmailUsingRoutingFormHandler({
185189
186190 if ( ! userQuery ) return nullReturnValue ;
187191
188- return { ...nullReturnValue , email : userEmail , recordType } ;
192+ return { ...nullReturnValue , email : userEmail , recordType, recordId } ;
189193}
190194
191195async function getTeamMemberEmailForResponseOrContact ( {
0 commit comments