mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 23:34:04 +02:00
lint: Restore original lint
This commit is contained in:
parent
fe3a8dcd73
commit
7b3760c680
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue