Skip to content

Commit

Permalink
Script fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirosson committed Oct 2, 2023
1 parent 1aa0950 commit d5ac564
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/github-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ function formatDate(inputDate) {

function updateJson(itemId, latestVersion, latestReleaseDate) {
// Define the path to your JSON file.
const filePath = `./items/${itemId}.json`;
const filePath = `../items/${itemId}.json`;

// Read the JSON file.
fs.readFile(filePath, 'utf8', (err, data) => {
if (err) {
console.error('Error reading JSON file:', err);
process.exit(1);
return;
}

Expand Down

0 comments on commit d5ac564

Please sign in to comment.