This commit is contained in:
parent
f715f6425a
commit
221572f5e4
1 changed files with 5 additions and 5 deletions
10
broker.ts
10
broker.ts
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue