Skip to content
Snippets Groups Projects
Commit 38833db9 authored by Nathaniel Kofalt's avatar Nathaniel Kofalt
Browse files

Mongo syntax is weird; fix job update call

parent aeb1d994
No related branches found
No related tags found
No related merge requests found
......@@ -204,4 +204,4 @@ class Job(base.RequestHandler):
# REVIEW: is this atomic?
# As far as I can tell, update_one vs find_one_and_update differ only in what they return.
self.app.db.jobs.update_one(job, mutation)
self.app.db.jobs.update_one(job, {'$set': mutation})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment