mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Fix teamRole showing.
This commit is contained in:
parent
f2f5517051
commit
c5dd3390d6
3 changed files with 17 additions and 4 deletions
|
|
@ -97,7 +97,18 @@ export async function getUsers(
|
|||
}
|
||||
|
||||
export async function getUsersByTeamId(teamId: string, filter?: UserSearchFilter) {
|
||||
return getUsers({ teamId, ...filter });
|
||||
return getUsers(
|
||||
{ teamId, ...filter },
|
||||
{
|
||||
include: {
|
||||
teamUser: {
|
||||
select: {
|
||||
role: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
export async function createUser(data: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue