Merge pull request #1063 from hbakhtiyor/patch-1

Convert ContentLength of storage to number
This commit is contained in:
Danny Coates 2020-07-09 19:34:33 -07:00 committed by GitHub
commit e6ff9e486b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ class S3Storage {
const result = await this.s3
.headObject({ Bucket: this.bucket, Key: id })
.promise();
return result.ContentLength;
return Number(result.ContentLength);
}
getStream(id) {