From 7f64badb062ac28f7eccc33c9251c200918f0448 Mon Sep 17 00:00:00 2001 From: John Campbell <114193843+buzzinJohnnyBoi@users.noreply.github.com> Date: Sat, 13 Jul 2024 22:03:13 -0400 Subject: [PATCH] Update comment on recurring-interval type maintenance Co-authored-by: Frank Elsinga --- server/model/maintenance.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/model/maintenance.js b/server/model/maintenance.js index 6eb5273b..468cb2c4 100644 --- a/server/model/maintenance.js +++ b/server/model/maintenance.js @@ -411,7 +411,8 @@ class Maintenance extends BeanModel { } else if (!this.strategy.startsWith("recurring-")) { this.cron = ""; } else if (this.strategy === "recurring-interval") { - this.cron = "* * * * *"; // Because it is interval, it will be calculated in the run function + // For intervals, the pattern is calculated in the run function as the interval-option is set + this.cron = "* * * * *"; this.duration = this.calcDuration(); log.debug("maintenance", "Cron: " + this.cron); log.debug("maintenance", "Duration: " + this.duration);