refactor: change method

This commit is contained in:
Methapon2001 2024-04-03 10:54:46 +07:00
parent 075d40876e
commit 7ba77907d3
2 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ import {
Controller, Controller,
Delete, Delete,
Get, Get,
Patch, Put,
Path, Path,
Post, Post,
Query, Query,
@ -171,7 +171,7 @@ export class BranchController extends Controller {
return record; return record;
} }
@Patch("{branchId}") @Put("{branchId}")
async editBranch( async editBranch(
@Request() req: RequestWithUser, @Request() req: RequestWithUser,
@Body() body: BranchUpdate, @Body() body: BranchUpdate,

View file

@ -3,7 +3,7 @@ import {
Controller, Controller,
Delete, Delete,
Get, Get,
Patch, Put,
Path, Path,
Post, Post,
Query, Query,
@ -112,7 +112,7 @@ export class BranchContactController extends Controller {
}); });
} }
@Patch("{contactId}") @Put("{contactId}")
async editBranchContact( async editBranchContact(
@Request() req: RequestWithUser, @Request() req: RequestWithUser,
@Body() body: BranchContactUpdate, @Body() body: BranchContactUpdate,