Commit e5d6657c authored by Fady Khalife's avatar Fady Khalife

Ensure the updated job record is returned when a job is popped from the queue

parent 5e6aecd0
...@@ -61,7 +61,7 @@ class MongoQueue extends DatabaseQueue ...@@ -61,7 +61,7 @@ class MongoQueue extends DatabaseQueue
], ],
], ],
[ [
'returnNewDocument ' => true, 'returnDocument' => FindOneAndUpdate::RETURN_DOCUMENT_AFTER,
'sort' => ['available_at' => 1], 'sort' => ['available_at' => 1],
] ]
); );
......
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