Prevent generating duplicated timeslots

This commit is contained in:
Louis Lam
2023-03-09 22:03:23 +08:00
parent a599f5149b
commit 533bc1505b
2 changed files with 27 additions and 3 deletions

View File

@@ -271,6 +271,7 @@ class UptimeKumaServer {
/** Load the timeslots for maintenance */
async generateMaintenanceTimeslots() {
log.debug("maintenance", "Routine: Generating Maintenance Timeslots");
// Prevent #2776
// Remove duplicate maintenance_timeslot with same start_date, end_date and maintenance_id