Skip to content

Commit

Permalink
Fix: composeObject error for un-versioned bucket (#1029)
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashsvmx authored May 1, 2022
1 parent b53875a commit 06e4081
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/minio.js
Original file line number Diff line number Diff line change
Expand Up @@ -3258,9 +3258,13 @@ export class Client {
}

const getStatOptions = (srcConfig) =>{
return {
versionId: srcConfig.VersionID
let statOpts = {}
if(!_.isEmpty(srcConfig.VersionID)) {
statOpts= {
versionId: srcConfig.VersionID
}
}
return statOpts
}
const srcObjectSizes=[]
let totalSize=0
Expand Down

0 comments on commit 06e4081

Please sign in to comment.