Skip to content

Commit

Permalink
S3UTILS-163: fix bucket key computation in count items for inflights
Browse files Browse the repository at this point in the history
  • Loading branch information
williamlardier committed May 18, 2024
1 parent 5eca975 commit 2cec066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/S3UtilsMongoClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class S3UtilsMongoClient extends MongoClientInterface {

const bucketEntry = usersBucketCreationDatesMap[`${bucketInfo.getOwner()}${constants.splitter}${bucketName}`];
if (bucketEntry) {
bucketKey = `bucket_${bucketName}_${new Date(usersBucketCreationDatesMap[bucketEntry]).getTime()}`;
bucketKey = `bucket_${bucketName}_${new Date(bucketEntry).getTime()}`;
if (bucketKey) {
inflightsPreScan = await this.readStorageConsumptionInflights(bucketKey, log);
}
Expand Down

0 comments on commit 2cec066

Please sign in to comment.