Teams refactor: removed team websites.

This commit is contained in:
Mike Cao committed 2024-01-25 23:20:53 -08:00
1 parent 0d442b751d
commit f85393f8df
23 files changed
+190 -351

No files matched your search

-8
View File
@@ -68,14 +68,6 @@ export async function deleteTeamUser(teamId: string, userId: string): Promise<Te
const { client, transaction } = prisma;
return transaction([
client.teamWebsite.deleteMany({
where: {
teamId: teamId,
website: {
userId: userId,
},
},
}),
client.teamUser.deleteMany({
where: {
teamId,