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

Commit

Permalink
Merge pull request #876 from brandonbk/fix-most-popular
Browse files Browse the repository at this point in the history
Fix getting of content types from input
  • Loading branch information
brandonbk authored Feb 21, 2024
2 parents e11e052 + bb9fb7a commit ea9bbb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $ const getMostPopular = async () => {
const uri = MOST_POPULAR_API_URI || 'https://most-popular-content.base.parameter1.com';
const tenant = site.get("p1events.tenant");
const realm = config.website("id");
const contentTypes = getAsArray(input, 'input.includeContentTypes');
const contentTypes = getAsArray(input, 'includeContentTypes');
const defaultUrl = `${uri}/retrieve?tenant=${tenant}&realm=${realm}`;
const url = contentTypes.length ? `${defaultUrl}&types=${contentTypes.join(',')}` : defaultUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $ const getMostPopular = async () => {
const uri = MOST_POPULAR_API_URI || 'https://most-popular-content.base.parameter1.com';
const tenant = site.get("p1events.tenant");
const realm = config.website("id");
const contentTypes = getAsArray(input, 'input.includeContentTypes');
const contentTypes = getAsArray(input, 'includeContentTypes');
const defaultUrl = `${uri}/retrieve?tenant=${tenant}&realm=${realm}`;
const url = contentTypes.length ? `${defaultUrl}&types=${contentTypes.join(',')}` : defaultUrl;
Expand Down

0 comments on commit ea9bbb0

Please sign in to comment.