fix: delete organization user endpoint not working in api v2 (#21136)

This commit is contained in:
Anwar Sadath
2025-05-06 19:10:55 +00:00
committed by GitHub
parent d770cfc65e
commit 37f271bd74
@@ -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: {