From c7bacbb7fe89ed14855c5237c10f497281432247 Mon Sep 17 00:00:00 2001 From: Ionys <9364594+Ionys320@users.noreply.github.com> Date: Thu, 12 Jun 2025 01:42:25 +0200 Subject: [PATCH] Ensure maintenance are always runned at the right moment (#5903) Co-authored-by: Frank Elsinga --- 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 d3314d3f8..0a70063ff 100644 --- a/server/model/maintenance.js +++ b/server/model/maintenance.js @@ -243,7 +243,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";