Skip to content

Fixed caching logic to fetch all the necessary data #243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Removed redundant changes
  • Loading branch information
Oleksandr37 committed May 12, 2025
commit 59776ab22b1056633247fef3cb405975f5ea4646
4 changes: 2 additions & 2 deletions scripts/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const resources = [
'starships',
'vehicles',
'species',
'films',
'planets',
'films',
];

function replaceHttp(url) {
Expand Down Expand Up @@ -122,7 +122,7 @@ if (!existsSync(outfile)) {
writeFileSync(outfile, data, 'utf-8');
console.log('Cached!');
})
.catch(function(err) {
.catch(function (err) {
console.error(err);
process.exit(1);
});
Expand Down