Skip to content

Commit f1a5596

Browse files
committed
Fixing zrangebyscore.
1 parent 642b229 commit f1a5596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ResqueScheduler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public static function nextDelayedTimestamp($at = null)
223223
$at = self::getTimestamp($at);
224224
}
225225

226-
$items = Resque::redis()->zrangebyscore('delayed_queue_schedule', '-inf', $at, 'LIMIT', 0, 1);
226+
$items = Resque::redis()->zrangebyscore('delayed_queue_schedule', '-inf', $at, array('limit' => array(0, 1)));
227227
if (!empty($items)) {
228228
return $items[0];
229229
}

0 commit comments

Comments
 (0)