Skip to content

Commit

Permalink
fix(mongodb): change update entry filter
Browse files Browse the repository at this point in the history
  • Loading branch information
HakonHarnes committed May 31, 2023
1 parent 45a8151 commit cb8abf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongodb/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def update_document(data):
result = None
for collection_name in ['unobfuscated', 'llvm', 'tigress', 'wasm-mutate']:
collection = db[collection_name]
filter_ = {"_id": data["_id"]}
filter_ = {"file": data["file"]}
update_ = {"$set": data}
result = collection.update_one(filter_, update_)
return result
Expand Down

0 comments on commit cb8abf3

Please sign in to comment.