1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-29 20:29:28 -05:00

regionが空文字列のときはundefinedとする ()

This commit is contained in:
YS 2023-03-25 18:45:14 +09:00 committed by GitHub
parent 772e05e835
commit 31cc188bbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ export class S3Service {
accessKeyId: meta.objectStorageAccessKey,
secretAccessKey: meta.objectStorageSecretKey,
} : undefined,
region: meta.objectStorageRegion ?? undefined,
region: meta.objectStorageRegion ? meta.objectStorageRegion : undefined, // 空文字列もundefinedにするため ?? は使わない
tls: meta.objectStorageUseSSL,
forcePathStyle: meta.objectStorageEndpoint ? meta.objectStorageS3ForcePathStyle : false, // AWS with endPoint omitted
requestHandler: new NodeHttpHandler(handlerOption),