fix update user function in controller
This commit is contained in:
parent
69085b02d7
commit
1d9b3ba207
|
@ -80,8 +80,8 @@ export class AppController {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Put('user/updateUser/:dni')
|
@Put('user/updateUser')
|
||||||
updateUser(@Param('dni') dni: string) {
|
updateUser(
|
||||||
@Body('dni') dni: string,
|
@Body('dni') dni: string,
|
||||||
@Body('name') name: string,
|
@Body('name') name: string,
|
||||||
@Body('last_name') last_name: string,
|
@Body('last_name') last_name: string,
|
||||||
|
@ -93,7 +93,7 @@ export class AppController {
|
||||||
@Body('date_entry') date_entry: Date,
|
@Body('date_entry') date_entry: Date,
|
||||||
@Body('community_id') community_id: string,
|
@Body('community_id') community_id: string,
|
||||||
) {
|
) {
|
||||||
return this.appService.createUser(
|
return this.appService.updateUser(
|
||||||
dni,
|
dni,
|
||||||
name,
|
name,
|
||||||
last_name,
|
last_name,
|
||||||
|
|
Loading…
Reference in New Issue