mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 04:14:30 +00:00
fix(s3): use client.size instead of file.size in getObjectSize
This commit is contained in:
@@ -88,8 +88,7 @@ export class S3StorageService implements S3Service {
|
||||
}
|
||||
|
||||
async getObjectSize(bucket: string, key: string): Promise<number> {
|
||||
const file = this.client.file(key, { bucket })
|
||||
return await file.size
|
||||
return await this.client.size(key, { bucket })
|
||||
}
|
||||
|
||||
async putObject(
|
||||
|
||||
Reference in New Issue
Block a user