From a16a501aeb35f22284fbce199f63ad338e0f2bf2 Mon Sep 17 00:00:00 2001 From: Ionys <9364594+Ionys320@users.noreply.github.com> Date: Wed, 11 Jun 2025 13:21:19 +0200 Subject: [PATCH] fix(maintenance): Avoid `startEvent` execution time impacting next maintenance periods --- server/model/maintenance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/maintenance.js b/server/model/maintenance.js index 7111a18cb..ce1ed4d02 100644 --- a/server/model/maintenance.js +++ b/server/model/maintenance.js @@ -233,7 +233,7 @@ class Maintenance extends BeanModel { try { this.beanMeta.status = "scheduled"; - let startEvent = (customDuration = 0) => { + let startEvent = async (customDuration = 0) => { log.info("maintenance", "Maintenance id: " + this.id + " is under maintenance now"); this.beanMeta.status = "under-maintenance";