mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
Fixed user delete error 500
This commit is contained in:
parent
586529a5ca
commit
416fee0f53
1 changed files with 10 additions and 3 deletions
|
|
@ -197,9 +197,16 @@ export async function deleteUser(
|
|||
}),
|
||||
client.teamUser.deleteMany({
|
||||
where: {
|
||||
teamId: {
|
||||
in: teamIds,
|
||||
},
|
||||
OR: [
|
||||
{
|
||||
teamId: {
|
||||
in: teamIds,
|
||||
},
|
||||
},
|
||||
{
|
||||
userId,
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
client.team.deleteMany({
|
||||
|
|
|
|||
Loading…
Reference in a new issue