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 97d2e88 commit 19e6264
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/storage/metadata/mongoclient/MongoClientInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,9 @@ class MongoClientInterface {
const m = this.getCollection(METASTORE);
m.findOneAndDelete({
_id: bucketName,
} , {includeResultMetadata: true}, {})
} , {
includeResultMetadata: true
}, {})
.then(result => {
if (result.ok !== 1) {
log.error('deleteBucketStep2: failed deleting bucket');
Expand Down Expand Up @@ -1298,9 +1300,8 @@ class MongoClientInterface {
_id: masterKey,
value: objVal,
}, {
includeResultMetadata: true,
upsert: true,
}, {
includeResultMetadata: true
}).then(result => {
if (result.ok !== 1) {
log.error('repair: failed trying to repair value');
Expand Down Expand Up @@ -2629,10 +2630,9 @@ class MongoClientInterface {
value: objVal,
},
}, {
includeResultMetadata: true,
upsert: true,
}, {
includeResultMetadata: true
}).then(res => {
},).then(res => {
if (res.ok !== 1) {
log.error('failed to update object', {
method,
Expand Down

0 comments on commit 19e6264

Please sign in to comment.