Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 4d7e7a4

Browse files
committed
fix(banners): fixed banner fetching from nodejs.org
1 parent 2ef0302 commit 4d7e7a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apiUrls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
'https://raw.githubusercontent.com/nodejs/Release/main/schedule.json',
77
nodeReleaseData: 'https://nodejs.org/dist/index.json',
88
nodeBannersData:
9-
'https://raw.githubusercontent.com/nodejs/nodejs.org/main/locale/en/site.json',
9+
'https://raw.githubusercontent.com/nodejs/nodejs.org/main/site.json',
1010
jsonLink: (fileName, version) =>
1111
`https://nodejs.org/docs/latest-${version}.x/api/${fileName}.json`,
1212
};

util-node/getBannersData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function getBannersData() {
77
// And retrieves the `banners` data to display on the website
88
return fetch(nodeBannersData)
99
.then(response => response.json())
10-
.then(({ banners }) => banners);
10+
.then(({ websiteBanners }) => websiteBanners);
1111
}
1212

1313
module.exports = getBannersData;

0 commit comments

Comments
 (0)