From 9d83c1857c3277f142716437973c5171e92aef96 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Wed, 5 Jul 2023 19:06:39 +0000 Subject: [PATCH] allow mutate options --- shared/classes/StorageClient/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/classes/StorageClient/index.js b/shared/classes/StorageClient/index.js index 8e222366..886526e3 100755 --- a/shared/classes/StorageClient/index.js +++ b/shared/classes/StorageClient/index.js @@ -83,7 +83,6 @@ export class StorageClient extends Minio.Client { export const createStorageClientInstance = (options) => { return new StorageClient({ - ...options, endPoint: process.env.S3_ENDPOINT, port: Number(process.env.S3_PORT), useSSL: toBoolean(process.env.S3_USE_SSL), @@ -91,6 +90,7 @@ export const createStorageClientInstance = (options) => { secretKey: process.env.S3_SECRET_KEY, defaultBucket: process.env.S3_BUCKET, defaultRegion: process.env.S3_REGION, + ...options, }) }