fixed error

This commit is contained in:
IO
2024-06-30 17:04:42 -06:00
parent 90ddb52370
commit 3e3925c063
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -51,14 +51,14 @@ export class AuthController {
//@UseGuards(AuthGuard)
@Put('Modificacion/:id')
//@Roles(Role.Admin)
@Roles(Role.Admin)
async update(@Param('id') userId: number, @Body() data: registerDto) {
return this.authService.update(userId, data);
}
//@UseGuards(AuthGuard)
@Delete('Borrado/:id')
//@Roles(Role.Admin)
@Roles(Role.Admin)
async remove(@Param('id') id: number) {
await this.authService.remove(id);
return { message: 'User successfully deleted' };