From 77f18007a6cb971834555791348e1bc77195e486 Mon Sep 17 00:00:00 2001 From: sHa Date: Wed, 18 Jun 2025 13:55:53 +0300 Subject: [PATCH] fix: Correct variable name for image variable directory in update-data.js --- public/data/emblems.json | 2 +- scripts/update-data.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/data/emblems.json b/public/data/emblems.json index 7690e33..5998fbc 100644 --- a/public/data/emblems.json +++ b/public/data/emblems.json @@ -14,4 +14,4 @@ "wikipedia": "https://en.wikipedia.org/wiki/Coat_of_arms_of_Spain" } } -] +] \ No newline at end of file diff --git a/scripts/update-data.js b/scripts/update-data.js index 0c1e659..06791ed 100644 --- a/scripts/update-data.js +++ b/scripts/update-data.js @@ -14,7 +14,7 @@ const collection = collections.find(c => c.name === collectionName) || collectio const imagesDir = path.join(__dirname, '..', 'public', collection.baseDir); const outputFile = path.join(__dirname, '..', 'public', collection.dataFile); -const imagesVarDir = path.join(__dirname, '..', 'public', collection.imagesVarDir); +const imagesVarDir = path.join(__dirname, '..', 'public', collection.varDir); // Remove old PNG/JPG folders if they exist const pngDir = path.join(__dirname, '..', 'public', collection.baseDir + '-png');