Fix teamRole showing.
This commit is contained in:
1 parent
f2f5517051
commit
c5dd3390d6
3 files changed
+17
-4
No files matched your search
@@ -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: {
|
||||
|
||||
Reference in new issue
Block a user