fix: findOrgUser use profiles instead of organizationId apiv2 (#15808)

This commit is contained in:
Morgan
2024-07-17 12:51:42 +00:00
committed by GitHub
parent 9e3f8a2dc0
commit 58e61cb18e
@@ -74,7 +74,11 @@ export class OrganizationsRepository {
return this.dbRead.prisma.user.findUnique({
where: {
id: userId,
organizationId,
profiles: {
some: {
organizationId,
},
},
},
});
}