From a50aa93e8417a6d604a558ebe245350e88b4a4c7 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Sat, 7 Aug 2021 02:10:38 +0800 Subject: [PATCH] Fix: Fix monitor creation json parsing --- server/server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/server.js b/server/server.js index ac677ad6d..f14095eb5 100644 --- a/server/server.js +++ b/server/server.js @@ -230,6 +230,9 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString(); let notificationIDList = monitor.notificationIDList; delete monitor.notificationIDList; + monitor.accepted_statuscodes_json = JSON.stringify(monitor.accepted_statuscodes); + delete monitor.accepted_statuscodes; + bean.import(monitor) bean.user_id = socket.userID await R.store(bean)