mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 13:58:00 +00:00
refactor(s3): remove unnecessary type cast on payload in S3StorageService.putObject
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user