mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Fixed team user delete.
This commit is contained in:
parent
a226114374
commit
c6e52c247c
@ -65,16 +65,14 @@ export async function updateTeamUser(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function deleteTeamUser(teamId: string, userId: string): Promise<TeamUser> {
|
export async function deleteTeamUser(teamId: string, userId: string): Promise<TeamUser> {
|
||||||
const { client, transaction } = prisma;
|
const { client } = prisma;
|
||||||
|
|
||||||
return transaction([
|
return client.teamUser.deleteMany({
|
||||||
client.teamUser.deleteMany({
|
|
||||||
where: {
|
where: {
|
||||||
teamId,
|
teamId,
|
||||||
userId,
|
userId,
|
||||||
},
|
},
|
||||||
}),
|
});
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function deleteTeamUserByUserId(
|
export async function deleteTeamUserByUserId(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user