mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Add Role to TeamUser.
This commit is contained in:
parent
502facd426
commit
d5437c895e
4 changed files with 38 additions and 29 deletions
|
|
@ -21,11 +21,10 @@ export async function getUserRoles(where: Prisma.UserRoleWhereInput): Promise<Us
|
|||
});
|
||||
}
|
||||
|
||||
export async function getUserRolesByUserId(userId: string, teamId?: string): Promise<UserRole[]> {
|
||||
export async function getUserRolesByUserId(userId: string): Promise<UserRole[]> {
|
||||
return prisma.client.userRole.findMany({
|
||||
where: {
|
||||
userId,
|
||||
teamId,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue