feat: branch image multi

This commit is contained in:
Methapon Metanipat 2024-09-09 14:02:17 +07:00
parent 102f0216f8
commit 9e745ee81c
2 changed files with 60 additions and 1 deletions

View file

@ -44,6 +44,7 @@ export const fileLocation = {
image: (branchId: string) => `branch/branch-img-${branchId}`,
map: (branchId: string) => `branch/map-img-${branchId}`,
bank: (branchId: string, bankId: string) => `branch/bank-qr-${branchId}-${bankId}`,
img: (branchId: string, name?: string) => `user/img-${branchId}/${name || ""}`,
},
user: {
profile: (userId: string, name?: string) => `user/profile-image-${userId}/${name || ""}`,