Skip to content

Commit 652183a

Browse files
♻️ refactor: use active o-learner view only
Co-Authored-By: Aurélie Crouillebois <[email protected]>
1 parent f99c82f commit 652183a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/src/prescription/organization-learner/infrastructure/repositories/organization-learner-feature-repository.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import { OrganizationLearner } from '../../domain/read-models/OrganizationLearne
44
async function getOrganizationLearnersByFeature({ organizationId, featureKey }) {
55
const knexConn = DomainTransaction.getConnection();
66
const rawOrganizationLearnerFeatures = await knexConn
7-
.select('organization-learners.*')
8-
.from('organization-learners')
7+
.select('view-active-organization-learners.*')
8+
.from('view-active-organization-learners')
99
.join(
1010
'organization-learner-features',
1111
'organization-learner-features.organizationLearnerId',
12-
'organization-learners.id',
12+
'view-active-organization-learners.id',
1313
)
1414
.join('features', 'features.id', 'organization-learner-features.featureId')
1515
.where({ key: featureKey, organizationId });

0 commit comments

Comments
 (0)