Fix not sending followup reminders

This commit is contained in:
jude 2023-07-31 20:07:03 +01:00
parent 924d31e978
commit 2ad941c94c

View File

@ -309,8 +309,9 @@ WHERE
FROM FROM
reminders reminders
WHERE WHERE
reminders.`utc_time` <= NOW() reminders.`utc_time` <= NOW() AND
AND ( `status` = 'pending' AND
(
reminders.`interval_seconds` IS NOT NULL reminders.`interval_seconds` IS NOT NULL
OR reminders.`interval_months` IS NOT NULL OR reminders.`interval_months` IS NOT NULL
OR reminders.`interval_days` IS NOT NULL OR reminders.`interval_days` IS NOT NULL