Skip to content

Commit

Permalink
fixup post mongo bump
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Nov 28, 2024
1 parent 2e0db5c commit 97d2e88
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/storage/metadata/mongoclient/MongoClientInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -1643,6 +1645,7 @@ class MongoClientInterface {
'value.deleted': true,
},
}, {
includeResultMetadata : true,
upsert: false,
}).then(doc => {
if (!doc.value) {
Expand Down Expand Up @@ -2627,6 +2630,8 @@ class MongoClientInterface {
},
}, {
upsert: true,
}, {
includeResultMetadata: true
}).then(res => {
if (res.ok !== 1) {
log.error('failed to update object', {
Expand Down

0 comments on commit 97d2e88

Please sign in to comment.