Fix: Check for notified days smaller than target

pull/2906/head
Nelson Chan 1 year ago
parent 2dedc1cfbd
commit f32fcb204f

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

Loading…
Cancel
Save