Add Db::QueryBool() and some code style updates

This commit is contained in:
Alex Cabal 2024-09-15 13:50:13 -05:00
parent 854ec6b9df
commit 44901cf3e2
9 changed files with 100 additions and 77 deletions

View file

@ -2,11 +2,10 @@
<?
require_once('/standardebooks.org/web/lib/Core.php');
// Delete unconfirmed newsletter subscribers who are more than a week old
// Delete unconfirmed newsletter subscribers who are more than a week old.
Db::Query('
DELETE
from NewsletterSubscriptions
where IsConfirmed = false
and datediff(utc_timestamp(), Created) >= 7
');
?>