From 2fbba259ed25b073980fb5e7e1edb3dbd97c38be Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Mon, 23 Jun 2025 12:36:52 +0200 Subject: [PATCH] added 2 hour delay in send-preorder-custom-new-notification.php --- .../send-preorder-custom-new-notification.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }