Skip to content

Commit

Permalink
Return the insertId of released jobs (#18288)
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch authored and taylorotwell committed Mar 9, 2017
1 parent 2f7cf24 commit 4a9e589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Queue/Jobs/DatabaseJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ public function __construct(Container $container, DatabaseQueue $database, $job,
* Release the job back into the queue.
*
* @param int $delay
* @return void
* @return mixed
*/
public function release($delay = 0)
{
parent::release($delay);

$this->delete();

$this->database->release($this->queue, $this->job, $delay);
return $this->database->release($this->queue, $this->job, $delay);
}

/**
Expand Down

0 comments on commit 4a9e589

Please sign in to comment.