mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 00:55:37 +01: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({
|
client.teamUser.deleteMany({
|
||||||
where: {
|
where: {
|
||||||
teamId: {
|
OR: [
|
||||||
in: teamIds,
|
{
|
||||||
},
|
teamId: {
|
||||||
|
in: teamIds,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
userId,
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
client.team.deleteMany({
|
client.team.deleteMany({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue