From ee33c7abb35a786096ab2f7d14172229504ad90d Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Tue, 18 Feb 2025 15:38:54 +0700 Subject: [PATCH] fix: wrong positition store --- src/controllers/03-customer-branch-controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/03-customer-branch-controller.ts b/src/controllers/03-customer-branch-controller.ts index 8892365..772c4df 100644 --- a/src/controllers/03-customer-branch-controller.ts +++ b/src/controllers/03-customer-branch-controller.ts @@ -645,14 +645,14 @@ export class CustomerBranchFileController extends Controller { @Tags("Customer Branch Citizen") async listCitizen(@Request() req: RequestWithUser, @Path() branchId: string) { await this.checkPermission(req.user, branchId); - return await listFile(fileLocation.customerBranch.attachment(branchId)); + return await listFile(fileLocation.customerBranch.citizen(branchId)); } @Get("file-citizen/{id}") @Security("keycloak") @Tags("Customer Branch Citizen") async getCitizen(@Path() branchId: string, @Path() id: string) { - return await getFile(fileLocation.customerBranch.attachment(branchId, id)); + return await getFile(fileLocation.customerBranch.citizen(branchId, id)); } @Put("file-citizen/{id}") @@ -660,7 +660,7 @@ export class CustomerBranchFileController extends Controller { @Tags("Customer Branch Citizen") async putCitizen(@Request() req: RequestWithUser, @Path() branchId: string, @Path() id: string) { await this.checkPermission(req.user, branchId); - return req.res?.redirect(await setFile(fileLocation.customerBranch.attachment(branchId, id))); + return req.res?.redirect(await setFile(fileLocation.customerBranch.citizen(branchId, id))); } @Delete("file-citizen/{id}")