adding comment

This commit is contained in:
Nexllon 2024-05-12 23:48:40 -03:00 committed by GitHub
parent ae0adfd367
commit f8159ba20d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -333,7 +333,7 @@ export class TitlePhase extends Phase {
this.end();
});
};
// If Online, calls seed fetch from db to generate daily run. If Offline, generates a daily run based on current date.
if (!Utils.isLocal){
fetchDailyRunSeed().then(seed => {
generateDaily(seed);
@ -341,7 +341,7 @@ export class TitlePhase extends Phase {
console.error("Failed to load daily run:\n", err);
});
} else {
generateDaily(btoa(new Date().toISOString().substring(0, 10)))
generateDaily(btoa(new Date().toISOString().substring(0, 10)));
}
});
}