From 70e7945a6680ce449752ec01f7aaa4439484b877 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Tue, 10 Aug 2021 21:37:51 +0800 Subject: [PATCH] fix possible race condition --- server/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index 9eeca320..31d5edac 100644 --- a/server/server.js +++ b/server/server.js @@ -589,7 +589,7 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString(); })(); async function updateMonitorNotification(monitorID, notificationIDList) { - R.exec("DELETE FROM monitor_notification WHERE monitor_id = ? ", [ + await R.exec("DELETE FROM monitor_notification WHERE monitor_id = ? ", [ monitorID, ])