Revert Mail Queue Query Change, update the db structure to include new fields

This commit is contained in:
johnnyq
2024-02-10 14:34:34 -05:00
parent d78b667e0b
commit 3374a7042a
2 changed files with 5 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ file_put_contents($lock_file_path, "Locked");
// Get Mail Queue that has status of Queued and send it to the function sendSingleEmail() located in functions.php
$sql_queue = mysqli_query($mysqli, "SELECT * FROM email_queue WHERE email_status = 0");
$sql_queue = mysqli_query($mysqli, "SELECT * FROM email_queue WHERE email_status = 0 AND email_queued_at <= NOW()");
if (mysqli_num_rows($sql_queue) > 0) {
while ($row = mysqli_fetch_array($sql_queue)) {