refactor: change method
This commit is contained in:
parent
075d40876e
commit
7ba77907d3
2 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue