From 97d2e8804f6b7243f22aec68bb3c364bc6feadca Mon Sep 17 00:00:00 2001 From: Maha Benzekri Date: Thu, 28 Nov 2024 16:25:32 +0100 Subject: [PATCH] fixup post mongo bump --- lib/storage/metadata/mongoclient/MongoClientInterface.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/storage/metadata/mongoclient/MongoClientInterface.js b/lib/storage/metadata/mongoclient/MongoClientInterface.js index 18dfb0675..c2844b214 100644 --- a/lib/storage/metadata/mongoclient/MongoClientInterface.js +++ b/lib/storage/metadata/mongoclient/MongoClientInterface.js @@ -1299,6 +1299,8 @@ class MongoClientInterface { value: objVal, }, { upsert: true, + }, { + includeResultMetadata: true }).then(result => { if (result.ok !== 1) { log.error('repair: failed trying to repair value'); @@ -1643,6 +1645,7 @@ class MongoClientInterface { 'value.deleted': true, }, }, { + includeResultMetadata : true, upsert: false, }).then(doc => { if (!doc.value) { @@ -2627,6 +2630,8 @@ class MongoClientInterface { }, }, { upsert: true, + }, { + includeResultMetadata: true }).then(res => { if (res.ok !== 1) { log.error('failed to update object', {