mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 05:54:44 +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
|
body && typeof body === 'object' && 'getReader' in body
|
||||||
? new Response(body as ReadableStream)
|
? new Response(body as ReadableStream)
|
||||||
: body
|
: body
|
||||||
await this.client.write(key, payload as string | Buffer | ArrayBuffer | Uint8Array | Response, {
|
await this.client.write(key, payload, {
|
||||||
bucket,
|
bucket,
|
||||||
type: contentType,
|
type: contentType,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user