From f32fcb204f9737d26ee15804e29b0aaf0363026d Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Wed, 8 Mar 2023 22:21:24 +0800 Subject: [PATCH] Fix: Check for notified days smaller than target --- server/model/monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 312ac732b..2c25978e0 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -1233,7 +1233,7 @@ class Monitor extends BeanModel { if (notificationList.length > 0) { - let row = await R.getRow("SELECT * FROM notification_sent_history WHERE type = ? AND monitor_id = ? AND days = ?", [ + let row = await R.getRow("SELECT * FROM notification_sent_history WHERE type = ? AND monitor_id = ? AND days <= ?", [ "certificate", this.id, targetDays,