mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Added owner column to teams table.
This commit is contained in:
parent
e5b57f63cd
commit
22aeaf7166
3 changed files with 4 additions and 3 deletions
|
|
@ -49,14 +49,14 @@ export async function getUsers(): Promise<User[]> {
|
|||
export async function getUserTeams(userId: string): Promise<Team[]> {
|
||||
return prisma.client.team.findMany({
|
||||
where: {
|
||||
teamUsers: {
|
||||
teamUser: {
|
||||
some: {
|
||||
userId,
|
||||
},
|
||||
},
|
||||
},
|
||||
include: {
|
||||
teamUsers: {
|
||||
teamUser: {
|
||||
include: {
|
||||
user: true,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue