diff --git a/scripts/preorder/custom_notifications/send-preorder-custom-new-notification.php b/scripts/preorder/custom_notifications/send-preorder-custom-new-notification.php index 80f61bfc8..4d9ecf9df 100644 --- a/scripts/preorder/custom_notifications/send-preorder-custom-new-notification.php +++ b/scripts/preorder/custom_notifications/send-preorder-custom-new-notification.php @@ -36,7 +36,7 @@ WHERE p.type = 'order' AND JSON_EXTRACT(pcsmt.logical_config, '$.type') = '300-custom-new-order' AND psnl.id IS NULL -- No existing '300-custom-new-order' notification AND p.create > ".$earliest_order_date->getTimestamp()." -- no older than \$earliest_order_date - -- AND p.create < (UNIX_TIMESTAMP(NOW()) - 86400) -- Only consider preorders older than 24 hours + AND p.create < (UNIX_TIMESTAMP(NOW()) - 7200) -- Only consider preorders older than 2 hours ORDER BY p.id ASC;"; $res = $db->query($sql); @@ -82,6 +82,7 @@ while($row = $res->fetch_assoc()) { } if(!in_array($netowner_id, $allowed_netowners)) { + logMessage("Netowner not allowed"); continue; }