Commit 02ca494f authored by juanf's avatar juanf Committed by Jens Segers

Fixed issue #1002 and #1013 (#1025)

parent d25ea54d
......@@ -14,11 +14,11 @@ class MongoFailedJobProvider extends DatabaseFailedJobProvider
*
* @return void
*/
public function log($connection, $queue, $payload)
public function log($connection, $queue, $payload, $exception)
{
$failed_at = Carbon::now()->getTimestamp();
$this->getTable()->insert(compact('connection', 'queue', 'payload', 'failed_at'));
$this->getTable()->insert(compact('connection', 'queue', 'payload', 'failed_at', 'exception'));
}
/**
......@@ -28,7 +28,7 @@ class MongoFailedJobProvider extends DatabaseFailedJobProvider
*/
public function all()
{
$all = $this->getTable()->orderBy('_id', 'desc')->get();
$all = $this->getTable()->orderBy('_id', 'desc')->get()->all();
$all = array_map(function ($job) {
$job['id'] = (string) $job['_id'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment