refactor(s3): remove unnecessary type cast on payload in S3StorageService.putObject

This commit is contained in:
yiling
2026-07-30 08:36:57 +08:00
parent 31894bfb59
commit e802469a70
+1 -1
View File
@@ -95,7 +95,7 @@ export class S3StorageService implements S3Service {
body && typeof body === 'object' && 'getReader' in body
? new Response(body as ReadableStream)
: body
await this.client.write(key, payload as string | Buffer | ArrayBuffer | Uint8Array | Response, {
await this.client.write(key, payload, {
bucket,
type: contentType,
})