From 6d6e0548fe99ab6efae519beeea5ac975c9bd87e Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 5 Sep 2024 16:14:31 +0700 Subject: [PATCH] refactor: update file path --- src/utils/minio.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/minio.ts b/src/utils/minio.ts index 00cef04..89f25a3 100644 --- a/src/utils/minio.ts +++ b/src/utils/minio.ts @@ -46,6 +46,7 @@ export const fileLocation = { bank: (branchId: string, bankId: string) => `branch/bank-qr-${branchId}-${bankId}`, }, user: { - profile: (userId: string, name?: string) => `user/profile-image-${userId}/${name || ""}`, + profile: (userId: string, name?: string) => `user/profile-image-${userId}-${name || ""}`, + attachment: (userId: string, name?: string) => `user/attachment-${userId}-${name || ""}`, }, };