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}")