Skip to content

Commit

Permalink
fix queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian committed Aug 25, 2021
1 parent 2e7634b commit 5436495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions version/205/class/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private static function getOpen($limit)
if (!defined('MOLLIE_HOOK_DELAY')) {
define('MOLLIE_HOOK_DELAY', 3);
}
$open = Shop::DB()->executeQueryPrepared(sprintf("SELECT * FROM %s WHERE dDone IS NULL AND `bLock` IS NULL AND (cType LIKE 'webhook:%%' OR (cType LIKE 'hook:%%') AND dCreated < DATE_SUB(NOW(), INTERVAL " . (int)MOLLIE_HOOK_DELAY . ' MINUTE)) ORDER BY dCreated DESC LIMIT 0, :LIMIT;', QueueModel::TABLE), [
$open = Shop::DB()->executeQueryPrepared(sprintf("SELECT * FROM %s WHERE (dDone IS NULL OR dDone = '0000-00-00 00:00:00') AND `bLock` IS NULL AND (cType LIKE 'webhook:%%' OR (cType LIKE 'hook:%%') AND dCreated < DATE_SUB(NOW(), INTERVAL " . (int)MOLLIE_HOOK_DELAY . ' MINUTE)) ORDER BY dCreated DESC LIMIT 0, :LIMIT;', QueueModel::TABLE), [
':LIMIT' => $limit
], 2);

Expand Down Expand Up @@ -212,7 +212,7 @@ protected static function handleHook($hook, QueueModel $todo)
$result = $e->getMessage() . "\n" . $e->getFile() . ':' . $e->getLine() . "\n" . $e->getTraceAsString();
}
} else {
$result = sprintf('Unerwarteter Mollie Status "%s" für %s', $checkout->getMollie()->status, $checkout->getBestellung()->cBestellNr);
$result = sprintf('Unerwarteter Mollie Status "%s" für %s', $checkout->getMollie()->status, $checkout->getBestellung()->cBestellNr);
}
} else {
$result = 'Nothing to do.';
Expand Down

0 comments on commit 5436495

Please sign in to comment.