mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-25 02:36:20 +01:00
Merge pull request #2044 from abhilakshbansal2001/abhilaksh
Fixed user delete error 500
This commit is contained in:
commit
f8ededb31e
@ -198,9 +198,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…
Reference in New Issue
Block a user