Adding 'hosts' instead of 'users' (#14105)
This commit is contained in:
1 parent
253f57bce1
commit
9abf004880
1 file changed
+7
-3
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user