Added distinct clause when getting user list in team (#10144)
parent
58d6bb840a
commit
fb16d8e900
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue