Skip to content

Commit 810a243

Browse files
author
Morten Hauberg
committed
Convert DateTime to seconds
1 parent 0daf2e8 commit 810a243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VladimirYuldashev/LaravelQueueRabbitMQ/Queue/RabbitMQQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function pushRaw($payload, $queue = null, array $options = [])
131131
*/
132132
public function later($delay, $job, $data = '', $queue = null)
133133
{
134-
return $this->pushRaw($this->createPayload($job, $data), $queue, ['delay' => $delay]);
134+
return $this->pushRaw($this->createPayload($job, $data), $queue, ['delay' => $this->getSeconds($delay)]);
135135
}
136136

137137
/**

0 commit comments

Comments
 (0)