Added owner column to teams table.
This commit is contained in:
1 parent
e5b57f63cd
commit
22aeaf7166
3 files changed
+4
-3
No files matched your search
@@ -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,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user