mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 18:26:20 +01:00
Merge pull request #2044 from abhilakshbansal2001/abhilaksh
Fixed user delete error 500
This commit is contained in:
commit
f8ededb31e
@ -198,10 +198,17 @@ export async function deleteUser(
|
||||
}),
|
||||
client.teamUser.deleteMany({
|
||||
where: {
|
||||
OR: [
|
||||
{
|
||||
teamId: {
|
||||
in: teamIds,
|
||||
},
|
||||
},
|
||||
{
|
||||
userId,
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
client.team.deleteMany({
|
||||
where: {
|
||||
|
Loading…
Reference in New Issue
Block a user