Skip to content

Commit

Permalink
Add training editions to the checker. (#1666)
Browse files Browse the repository at this point in the history
SQUASH
  • Loading branch information
AWare authored Mar 3, 2021
1 parent a7c4aa5 commit 5846cbb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions projects/archiver/src/services/editions-mappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ export const getEditionDisplayName = async (editionId: EditionId) => {

const editionTitle =
getTitle(maybeEditionsList.regionalEditions, editionId) ||
getTitle(maybeEditionsList.specialEditions, editionId)
getTitle(maybeEditionsList.specialEditions, editionId) ||
getTitle(maybeEditionsList.trainingEditions, editionId)

if (!editionTitle) {
throw new Error(
`${editionId} missing in editionToName mapping. Editions List: ${maybeEditionsList}`,
`${editionId} missing in editionToName mapping. Editions List: ${JSON.stringify(
maybeEditionsList,
)}`,
)
}

Expand Down

0 comments on commit 5846cbb

Please sign in to comment.