Added distinct clause when getting user list in team (#10144)

pull/10100/head^2
alannnc 2023-07-13 15:04:30 -07:00 committed by GitHub
parent 58d6bb840a
commit fb16d8e900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1239,6 +1239,7 @@ export const insightsRouter = router({
select: UserSelect,
},
},
distinct: ["userId"],
});
return usersInTeam.map((membership) => membership.user);
}
@ -1274,6 +1275,7 @@ export const insightsRouter = router({
select: UserSelect,
},
},
distinct: ["userId"],
});
return usersInTeam.map((membership) => membership.user);