added 2 hour delay in send-preorder-custom-new-notification.php
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user