Scheduling infrastructure for absolutely everyone.
fix: slots troubleshooter data (#17217)
Hariom Balhara1fc376c51a50
diff --git a/packages/trpc/server/routers/viewer/slots/util.ts b/packages/trpc/server/routers/viewer/slots/util.tsindex 77ef2a8b984..3cce8a2ceb8 100644--- a/packages/trpc/server/routers/viewer/slots/util.ts+++ b/packages/trpc/server/routers/viewer/slots/util.ts@@ -924,17 +924,16 @@ export async function getAvailableSlots({ input, ctx }: GetScheduleOptions): Protroubleshooter: {// One that Salesforce asked foraskedContactOwner: contactOwnerEmailFromInput,- // One that we used as per Routing- usedContactOwner: contactOwnerEmail,- routedHosts: routedHostsWithContactOwnerAndFixedHosts.map((host) => {+ // One that we used as per Routing skipContactOwner flag+ consideredContactOwner: contactOwnerEmail,+ // All hosts that have been checked for availability. If no routedTeamMemberIds are provided, this will be same as hosts.+ routedHosts: usersWithCredentials.map((user) => {return {- email: host.email,- user: host.user.id,+ userId: user.id,};}),hosts: eventHosts.map((host) => ({- email: host.email,- user: host.user.id,+ userId: host.user.id,})),},}