mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-01 11:22:34 +02:00
Merge 23277149a0
into 839ead80cc
This commit is contained in:
commit
6885e2e8b0
1 changed files with 11 additions and 9 deletions
|
@ -157,6 +157,7 @@ class Maintenance extends BeanModel {
|
|||
bean.timezone = obj.timezoneOption;
|
||||
bean.active = obj.active;
|
||||
|
||||
if (obj.dateRange) {
|
||||
if (obj.dateRange[0]) {
|
||||
bean.start_date = obj.dateRange[0];
|
||||
} else {
|
||||
|
@ -168,6 +169,7 @@ class Maintenance extends BeanModel {
|
|||
} else {
|
||||
bean.end_date = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (bean.strategy === "cron") {
|
||||
bean.duration = obj.durationMinutes * 60;
|
||||
|
|
Loading…
Add table
Reference in a new issue