fix: wrong position
This commit is contained in:
parent
213ec28565
commit
1a804610bd
2 changed files with 2 additions and 2 deletions
|
|
@ -814,7 +814,7 @@ export class BranchController extends Controller {
|
||||||
throw new HttpError(HttpStatus.NOT_FOUND, "Branch cannot be found.", "branchNotFound");
|
throw new HttpError(HttpStatus.NOT_FOUND, "Branch cannot be found.", "branchNotFound");
|
||||||
}
|
}
|
||||||
|
|
||||||
return await listFile(fileLocation.user.profile(branchId));
|
return await listFile(fileLocation.branch.img(branchId));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get("{branchId}/image/{name}")
|
@Get("{branchId}/image/{name}")
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ export const fileLocation = {
|
||||||
image: (branchId: string) => `branch/branch-img-${branchId}`,
|
image: (branchId: string) => `branch/branch-img-${branchId}`,
|
||||||
map: (branchId: string) => `branch/map-img-${branchId}`,
|
map: (branchId: string) => `branch/map-img-${branchId}`,
|
||||||
bank: (branchId: string, bankId: string) => `branch/bank-qr-${branchId}-${bankId}`,
|
bank: (branchId: string, bankId: string) => `branch/bank-qr-${branchId}-${bankId}`,
|
||||||
img: (branchId: string, name?: string) => `user/img-${branchId}/${name || ""}`,
|
img: (branchId: string, name?: string) => `branch/img-${branchId}/${name || ""}`,
|
||||||
},
|
},
|
||||||
user: {
|
user: {
|
||||||
profile: (userId: string, name?: string) => `user/profile-image-${userId}/${name || ""}`,
|
profile: (userId: string, name?: string) => `user/profile-image-${userId}/${name || ""}`,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue