fix: delete organization user endpoint not working in api v2 (#21136)
This commit is contained in:
+10
-1
@@ -141,7 +141,16 @@ export class OrganizationsUsersRepository {
|
||||
return await this.dbWrite.prisma.user.delete({
|
||||
where: {
|
||||
id: userId,
|
||||
organizationId: orgId,
|
||||
OR: [
|
||||
{ organizationId: orgId },
|
||||
{
|
||||
profiles: {
|
||||
some: {
|
||||
organizationId: orgId,
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
include: {
|
||||
profiles: {
|
||||
|
||||
Reference in New Issue
Block a user