From 7ba77907d3b3be309491f88092d0525aadfae86d Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 3 Apr 2024 10:54:46 +0700 Subject: [PATCH] refactor: change method --- src/controllers/branch/branch-controller.ts | 4 ++-- src/controllers/branch/contact-controller.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controllers/branch/branch-controller.ts b/src/controllers/branch/branch-controller.ts index 1e12a87..a255e56 100644 --- a/src/controllers/branch/branch-controller.ts +++ b/src/controllers/branch/branch-controller.ts @@ -4,7 +4,7 @@ import { Controller, Delete, Get, - Patch, + Put, Path, Post, Query, @@ -171,7 +171,7 @@ export class BranchController extends Controller { return record; } - @Patch("{branchId}") + @Put("{branchId}") async editBranch( @Request() req: RequestWithUser, @Body() body: BranchUpdate, diff --git a/src/controllers/branch/contact-controller.ts b/src/controllers/branch/contact-controller.ts index 57dc329..9607afb 100644 --- a/src/controllers/branch/contact-controller.ts +++ b/src/controllers/branch/contact-controller.ts @@ -3,7 +3,7 @@ import { Controller, Delete, Get, - Patch, + Put, Path, Post, Query, @@ -112,7 +112,7 @@ export class BranchContactController extends Controller { }); } - @Patch("{contactId}") + @Put("{contactId}") async editBranchContact( @Request() req: RequestWithUser, @Body() body: BranchContactUpdate,