diff --git a/src/instructor/instructor.service.ts b/src/instructor/instructor.service.ts index 14f9b98..4f0871d 100644 --- a/src/instructor/instructor.service.ts +++ b/src/instructor/instructor.service.ts @@ -315,20 +315,10 @@ export class InstructorService { organizationName ? { organizationName } : undefined, ].filter(Boolean) as Prisma.StudentEnrollmentWhereInput[], user: { - AND: [ - { - OR: [ - organizationId ? { primaryOrganizationId: organizationId } : undefined, - organizationName ? { primaryOrganizationName: organizationName } : undefined, - ].filter(Boolean) as Prisma.UserWhereInput[], - }, - { - OR: [ - { authRole: null }, - { authRole: 'STUDENT' }, - { authRole: 'USER' }, - ], - }, + OR: [ + { authRole: null }, + { authRole: 'STUDENT' }, + { authRole: 'USER' }, ], }, },