Team delete functionality.

This commit is contained in:
Mike Cao 2023-02-02 11:59:38 -08:00
parent 835289a1f8
commit 0ce2d1fbfc
11 changed files with 128 additions and 56 deletions

View file

@ -6,6 +6,9 @@ import { ROLES } from 'lib/constants';
export async function getTeam(where: Prisma.TeamWhereInput): Promise<Team> {
return prisma.client.team.findFirst({
where,
include: {
teamUser: true,
},
});
}