Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Expose all titles in a format that is useful to us
Browse files Browse the repository at this point in the history
  • Loading branch information
varney committed Jun 24, 2024
1 parent 349c436 commit 5b780de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/titles.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ function getTitlesByNamespace(namespace) {
return productConfig[namespace].map((pm) => pm.title).filter((t) => t);
}

const allTitles = productMapping.filter((pm) => pm.title).map((pm) => {
return { title: pm.title, namespace: pm.namespace, name: pm.productName };
});

export {
postalDeliveryAllowed,
getAllPrintTitles,
Expand All @@ -51,4 +55,5 @@ export {
getTitlesByNamespace,
productMapping,
productConfig,
allTitles,
};

0 comments on commit 5b780de

Please sign in to comment.