This commit is contained in:
TioSam77
2024-06-19 16:23:24 -06:00
4 changed files with 35 additions and 8 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ export class AuthController {
//@UseGuards(AuthGuard)
@Put('Modificacion/:id')
async update(@Param('id') id: number, @Body() updateUserDto: Record<string, any>) {
return this.authService.update(id, updateUserDto);
async update(@Param('id') userId: number, @Body() data: registerDto) {
return this.authService.update(userId, data);
}
//@UseGuards(AuthGuard)