schedule next run part 9
All checks were successful
ci / build (push) Successful in 1m6s

This commit is contained in:
Christopher Hase 2025-03-28 14:54:24 +01:00
parent f715f6425a
commit 221572f5e4

View file

@ -96,7 +96,7 @@ async function sendEmail(content: string) {
function calculateNextRunDate(daysInterval: number, timeOfDay: string): Date {
const currentDate = new Date();
/*// Splitte die Uhrzeit in Stunden und Minuten
// Splitte die Uhrzeit in Stunden und Minuten
const [hours, minutes] = timeOfDay.split(':').map(Number);
// Berechne das Datum für die nächste Ausführung
@ -110,11 +110,11 @@ function calculateNextRunDate(daysInterval: number, timeOfDay: string): Date {
// Berechne das Datum für den nächsten Ausführungszeitpunkt unter Berücksichtigung von X Tagen
currentDate.setDate(currentDate.getDate() + daysInterval);
return currentDate;*/
currentDate.setMinutes(currentDate.getMinutes() + 2); //TODO: JUST FOR DEBUGGING!!!
return currentDate;
//TODO: JUST FOR DEBUGGING!!!
/*currentDate.setMinutes(currentDate.getMinutes() + 2);
return currentDate;*/
}
//Schedule the next process loop.