Adding 'hosts' instead of 'users' (#14105)

This commit is contained in:
Alex van Andel authored and GitHub committed 2024-03-19 23:24:24 +00:00
1 parent 253f57bce1
commit 9abf004880
1 file changed
+7 -3
+7 -3
View File
@@ -130,8 +130,12 @@ export async function getTeamWithMembers(args: {
},
},
select: {
users: {
select: userSelect,
hosts: {
select: {
user: {
select: userSelect,
},
},
},
metadata: true,
...baseEventTypeSelect,
@@ -205,7 +209,7 @@ export async function getTeamWithMembers(args: {
const eventTypesWithUsersUserProfile = [];
for (const eventType of teamOrOrg.eventTypes) {
const usersWithUserProfile = [];
for (const user of eventType.users) {
for (const { user } of eventType.hosts) {
usersWithUserProfile.push(
await UserRepository.enrichUserWithItsProfile({
user,