Added owner column to teams table.

This commit is contained in:
Mike Cao committed 2023-02-02 02:54:43 -08:00
1 parent e5b57f63cd
commit 22aeaf7166
3 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -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,
},