add schema changes for TeamWebsite, update deleted logic for team tables

This commit is contained in:
Francis Cao 2023-02-01 17:08:16 -08:00
parent 5f15ad0807
commit 5fd946cfde
5 changed files with 113 additions and 16 deletions

View file

@ -61,10 +61,7 @@ export async function updateTeam(
}
export async function deleteTeam(teamId: string): Promise<Team> {
return prisma.client.team.update({
data: {
deletedAt: new Date(),
},
return prisma.client.team.delete({
where: {
id: teamId,
},