Add logging for CSV file loading in getImages function
All checks were successful
CI / build (push) Successful in 32s
All checks were successful
CI / build (push) Successful in 32s
This commit is contained in:
@@ -4,6 +4,7 @@ const CSV_FILE = process.env.CSV_FILE || "./uploads/sha1.csv";
|
||||
const IMAGE_BASE_URL = process.env.IMAGE_BASE_URL || "https://placehold.co/";
|
||||
|
||||
function getImages() {
|
||||
console.log(`[pictshare-browse] Loading CSV file from: ${CSV_FILE}`);
|
||||
if (!fs.existsSync(CSV_FILE)) return [];
|
||||
|
||||
return fs
|
||||
|
||||
Reference in New Issue
Block a user