fix: findOrgUser use profiles instead of organizationId apiv2 (#15808)
This commit is contained in:
1 parent
9e3f8a2dc0
commit
58e61cb18e
1 file changed
+5
-1
@@ -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