Convert ContentLength of storage to number
This commit is contained in:
parent
0338de3de7
commit
30d7ec50f3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue