refactor: update file path

This commit is contained in:
Methapon Metanipat 2024-09-05 16:14:31 +07:00
parent e44f563e35
commit 6d6e0548fe

View file

@ -46,6 +46,7 @@ export const fileLocation = {
bank: (branchId: string, bankId: string) => `branch/bank-qr-${branchId}-${bankId}`, bank: (branchId: string, bankId: string) => `branch/bank-qr-${branchId}-${bankId}`,
}, },
user: { 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 || ""}`,
}, },
}; };