Skip to content

Commit cb8abf3

Browse files
author
Håkon Harnes
committed
fix(mongodb): change update entry filter
1 parent 45a8151 commit cb8abf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongodb/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def update_document(data):
5959
result = None
6060
for collection_name in ['unobfuscated', 'llvm', 'tigress', 'wasm-mutate']:
6161
collection = db[collection_name]
62-
filter_ = {"_id": data["_id"]}
62+
filter_ = {"file": data["file"]}
6363
update_ = {"$set": data}
6464
result = collection.update_one(filter_, update_)
6565
return result

0 commit comments

Comments
 (0)