fix: slots troubleshooter data (#17217)

* Fix troubleshooter data slots

* Remove email

---------

Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
Hariom BalharaandUdit Takkar authored and GitHub committed 2024-10-22 13:05:55 +00:00
1 parent 9382b862e4
commit 1fc376c51a
1 file changed
+6 -7
@@ -924,17 +924,16 @@ export async function getAvailableSlots({ input, ctx }: GetScheduleOptions): Pro
troubleshooter: {
// One that Salesforce asked for
askedContactOwner: 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,
})),
},
}