fix update user function in controller

This commit is contained in:
Eduardo Quiros 2022-08-03 23:30:03 -06:00
parent 69085b02d7
commit 1d9b3ba207
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 3 additions and 3 deletions

View File

@ -80,8 +80,8 @@ export class AppController {
);
}
@Put('user/updateUser/:dni')
updateUser(@Param('dni') dni: string) {
@Put('user/updateUser')
updateUser(
@Body('dni') dni: string,
@Body('name') name: string,
@Body('last_name') last_name: string,
@ -93,7 +93,7 @@ export class AppController {
@Body('date_entry') date_entry: Date,
@Body('community_id') community_id: string,
) {
return this.appService.createUser(
return this.appService.updateUser(
dni,
name,
last_name,