Skip to content

Commit

Permalink
Améliorer la logique de filtrage des emplacements d'objet dans abortM…
Browse files Browse the repository at this point in the history
…ultipartUpload
  • Loading branch information
KillianG committed Nov 18, 2024
1 parent 0b46258 commit 046a124
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/api/apiUtils/object/abortMultipartUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ function abortMultipartUpload(authInfo, bucketName, objectKey, uploadId, log,
locations = [].concat(...locations);

if (objectMD?.location) {
const objectLocationLeft = objectMD.location.filter(loc => !locations.has(loc.key));
const objectLocationLeft = objectMD.location.filter(loc =>
!locations.some(existingLoc => existingLoc.key === loc.key));
locations = locations.concat(objectLocationLeft);
}

Expand Down

0 comments on commit 046a124

Please sign in to comment.