lint: Restore original lint

This commit is contained in:
Ionys 2025-06-11 12:13:38 +02:00
parent fe3a8dcd73
commit 7b3760c680

View file

@ -262,7 +262,7 @@ class Maintenance extends BeanModel {
if (this.strategy === "recurring-interval") {
// For recurring-interval, Croner needs to have interval and startAt
const startDate = dayjs(this.startDate);
const [hour, minute] = this.startTime.split(":");
const [ hour, minute ] = this.startTime.split(":");
const startDateTime = startDate.hour(hour).minute(minute);
this.beanMeta.job = new Cron(this.cron, {
timezone: await this.getTimezone(),
@ -453,7 +453,7 @@ class Maintenance extends BeanModel {
}
// Remove duplicate
dayList = [...new Set(dayList)];
dayList = [ ...new Set(dayList) ];
this.cron = minute + " " + hour + " " + dayList.join(",") + " * *";
this.duration = this.calcDuration();