diff --git a/postman/src/sender.rs b/postman/src/sender.rs index 3f300fa..08e83e9 100644 --- a/postman/src/sender.rs +++ b/postman/src/sender.rs @@ -309,8 +309,9 @@ WHERE FROM reminders WHERE - reminders.`utc_time` <= NOW() - AND ( + reminders.`utc_time` <= NOW() AND + `status` = 'pending' AND + ( reminders.`interval_seconds` IS NOT NULL OR reminders.`interval_months` IS NOT NULL OR reminders.`interval_days` IS NOT NULL