Skip to content

Commit

Permalink
fix(units listing): only count active units
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Protheroe committed May 15, 2023
1 parent fb4e64b commit 07b0fe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/node-lib/curriculum-api/generated/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46655,7 +46655,7 @@ export const UnitListingDocument = gql`
subjectSlug: subject_slug
subjectTitle: subject_title
tierSlug: tier_slug
totalUnitCount: total_unit_count
totalUnitCount: active_unit_count
}
mv_tiers: mv_tiers_1(where: {current_programme_slug: {_eq: $programmeSlug}}) {
tierTitle: tier_title
Expand Down
2 changes: 1 addition & 1 deletion src/node-lib/curriculum-api/queries/unitListing.gql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ query unitListing($programmeSlug: String!) {
subjectSlug: subject_slug
subjectTitle: subject_title
tierSlug: tier_slug
totalUnitCount: total_unit_count
totalUnitCount: active_unit_count
}
mv_tiers: mv_tiers_1(
where: { current_programme_slug: { _eq: $programmeSlug } }
Expand Down

0 comments on commit 07b0fe4

Please sign in to comment.