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

Commit

Permalink
Fix getting of content types from input
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonbk committed Feb 21, 2024
1 parent e11e052 commit bb9fb7a
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 bb9fb7a

Please sign in to comment.