Don't send non-interval disabled reminders

Skip the sending logic as some users use disabled one-time reminders as presets
This commit is contained in:
jude
2022-08-04 19:06:29 +01:00
parent 7b6e967a5d
commit 25b84880a5
4 changed files with 14 additions and 4 deletions

View File

@ -301,8 +301,13 @@ WHERE
ON reminders.channel_id = channels.id
WHERE reminders.`utc_time` < NOW()
GROUP BY channels.guild_id
) AND
reminders.`utc_time` < NOW()"#,
)
AND reminders.`utc_time` < NOW()
AND (
reminders.`interval_seconds` IS NOT NULL
OR reminders.`interval_months` IS NOT NULL
OR reminders.enabled
)"#,
)
.fetch_all(pool)
.await