From 7b3760c6807bce5d0759fe151945b2a35f6b6366 Mon Sep 17 00:00:00 2001 From: Ionys <9364594+Ionys320@users.noreply.github.com> Date: Wed, 11 Jun 2025 12:13:38 +0200 Subject: [PATCH] lint: Restore original lint --- server/model/maintenance.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/model/maintenance.js b/server/model/maintenance.js index 9e6a218b4..953ec8522 100644 --- a/server/model/maintenance.js +++ b/server/model/maintenance.js @@ -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();