fix: findOrgUser use profiles instead of organizationId apiv2 (#15808)
This commit is contained in:
@@ -74,7 +74,11 @@ export class OrganizationsRepository {
|
||||
return this.dbRead.prisma.user.findUnique({
|
||||
where: {
|
||||
id: userId,
|
||||
organizationId,
|
||||
profiles: {
|
||||
some: {
|
||||
organizationId,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user