Skip to content

Commit

Permalink
♻️ refactor: use active o-learner view only
Browse files Browse the repository at this point in the history
Co-Authored-By: Aurélie Crouillebois <[email protected]>
  • Loading branch information
yaf and aurelie-crouillebois committed Oct 24, 2024
1 parent f99c82f commit 652183a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { OrganizationLearner } from '../../domain/read-models/OrganizationLearne
async function getOrganizationLearnersByFeature({ organizationId, featureKey }) {
const knexConn = DomainTransaction.getConnection();
const rawOrganizationLearnerFeatures = await knexConn
.select('organization-learners.*')
.from('organization-learners')
.select('view-active-organization-learners.*')
.from('view-active-organization-learners')
.join(
'organization-learner-features',
'organization-learner-features.organizationLearnerId',
'organization-learners.id',
'view-active-organization-learners.id',
)
.join('features', 'features.id', 'organization-learner-features.featureId')
.where({ key: featureKey, organizationId });
Expand Down

0 comments on commit 652183a

Please sign in to comment.