From 0cead837053e139e9046e58761804324ec331e7f Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Tue, 3 Jan 2023 14:50:29 +0800 Subject: [PATCH] Fix #2516 --- server/model/status_page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/status_page.js b/server/model/status_page.js index 80b57699..0dabf5ab 100644 --- a/server/model/status_page.js +++ b/server/model/status_page.js @@ -281,7 +281,7 @@ class StatusPage extends BeanModel { let activeCondition = Maintenance.getActiveMaintenanceSQLCondition(); let maintenanceBeanList = R.convertToBeans("maintenance", await R.getAll(` - SELECT maintenance.* + SELECT DISTINCT maintenance.* FROM maintenance JOIN maintenance_status_page ON maintenance_status_page.maintenance_id = maintenance.id