From 3ad22f95efe9b8919ff125098f53b9188dfbf865 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Fri, 6 Sep 2024 14:03:02 +0700 Subject: [PATCH] fix: path --- src/utils/minio.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/minio.ts b/src/utils/minio.ts index 89f25a3..305d5fd 100644 --- a/src/utils/minio.ts +++ b/src/utils/minio.ts @@ -46,7 +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 || ""}`, - attachment: (userId: string, name?: string) => `user/attachment-${userId}-${name || ""}`, + profile: (userId: string, name?: string) => `user/profile-image-${userId}/${name || ""}`, + attachment: (userId: string, name?: string) => `user/attachment-${userId}/${name || ""}`, }, };