Merge pull request #2906 from chakflying/fix/duplicate-expiry-notif

Fix: Check for TLS expiry notified days smaller than target
This commit is contained in:
Louis Lam 2023-03-26 15:34:26 +08:00 committed by GitHub
commit 3c3a192943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1245,7 +1245,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,