Skip to content

Commit

Permalink
Merge pull request #7 from psygnoser/scheduled-job-push-zadd-compatib…
Browse files Browse the repository at this point in the history
…ility-fix

fixes zadd method call signature to be compatible with M6Web/RedisMock
  • Loading branch information
spinx authored Feb 20, 2018
2 parents 49c83fc + 016a823 commit 0178f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private function atomicPush($jobId, $class, $args = [], $queue = self::QUEUE, $r
$this->redis->sadd($this->name('queues'), $queue);
$this->redis->lpush($this->name('queue', $queue), $job);
} else {
$this->redis->zadd($this->name('schedule'), [$job => $doAt]);
$this->redis->zadd($this->name('schedule'), $doAt, $job);
}
}

Expand Down

0 comments on commit 0178f01

Please sign in to comment.