From 1d9b3ba20723ff97dc8de512fbf7177b51c00466 Mon Sep 17 00:00:00 2001 From: Eduardo Quiros Date: Wed, 3 Aug 2022 23:30:03 -0600 Subject: [PATCH] fix update user function in controller --- api-gateway/src/app.controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api-gateway/src/app.controller.ts b/api-gateway/src/app.controller.ts index 8a30ff9d..abc90be1 100644 --- a/api-gateway/src/app.controller.ts +++ b/api-gateway/src/app.controller.ts @@ -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,