Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fixed team user delete.

Mike Caoc6e52c247c0b
diff --git a/src/queries/admin/teamUser.ts b/src/queries/admin/teamUser.ts
index de29ce21d..7da5d2925 100644
--- a/src/queries/admin/teamUser.ts
+++ b/src/queries/admin/teamUser.ts
@@ -65,16 +65,14 @@ export async function updateTeamUser(
}
export async function deleteTeamUser(teamId: string, userId: string): Promise<TeamUser> {
- const { client, transaction } = prisma;
+ const { client } = prisma;
- return transaction([
- client.teamUser.deleteMany({
- where: {
- teamId,
- userId,
- },
- }),
- ]);
+ return client.teamUser.deleteMany({
+ where: {
+ teamId,
+ userId,
+ },
+ });
}
export async function deleteTeamUserByUserId(