Convert ContentLength of storage to number

This commit is contained in:
Abd ar-Rahman Hamidi 2019-01-02 22:16:03 +05:00 committed by GitHub
parent 0338de3de7
commit 30d7ec50f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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