mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 06:27:04 +08:00
WIP
This commit is contained in:
@@ -40,6 +40,12 @@ class MaintenanceTimeslot extends BeanModel {
|
||||
bean.end_date = maintenance.end_date;
|
||||
bean.generated_next = true;
|
||||
await R.store(bean);
|
||||
} else if (maintenance.strategy === "recurring-interval") {
|
||||
// TODO
|
||||
} else if (maintenance.strategy === "recurring-weekday") {
|
||||
// TODO
|
||||
} else if (maintenance.strategy === "recurring-day-of-month") {
|
||||
// TODO
|
||||
} else {
|
||||
throw new Error("Unknown maintenance strategy");
|
||||
}
|
||||
|
Reference in New Issue
Block a user