From a07255e1531807747024d89c5f6ce79a041741eb Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sun, 27 Oct 2024 20:06:08 +0800 Subject: [PATCH] Fix: migrate state --- server/database.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/database.js b/server/database.js index 75f5f25c..eb459435 100644 --- a/server/database.js +++ b/server/database.js @@ -775,8 +775,6 @@ class Database { await migrationServer.start(port, hostname); } - await Settings.set("migrateAggregateTableState", "migrating"); - log.info("db", "Migrating Aggregate Table"); log.info("db", "Getting list of unique monitors"); @@ -799,6 +797,8 @@ class Database { } } + await Settings.set("migrateAggregateTableState", "migrating"); + let progressPercent = 0; let part = 100 / monitors.length; let i = 1;