switch cron job back to daily

This commit is contained in:
Alexandra
2024-10-27 20:15:14 -06:00
parent af14aec429
commit 3679eabdf9

View File

@@ -89,7 +89,7 @@ async function loadFileList(){
if (
process.env.FORCE_FILE_REBUILD == "1" ||
!FileHandler.fileExists(fileListPath) ||
FileOlderThan(fileListPath, "2w")
FileOlderThan(fileListPath, "1w")
) {
await getFilesJob();
} else {
@@ -226,4 +226,4 @@ server.on("listening", function () {
});
console.log(`Loaded ${fileCount} known files.`);
cron.schedule("0 30 2 * * 0", getFilesJob);
cron.schedule("0 30 2 * * *", getFilesJob);