From 022490ae104ce526c318171f588e46a72c863459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Wed, 6 Dec 2023 14:58:28 +0100 Subject: [PATCH] removed duplicata from bad merge --- back/src/auth/auth.controller.ts | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/back/src/auth/auth.controller.ts b/back/src/auth/auth.controller.ts index 9d63095..9648713 100644 --- a/back/src/auth/auth.controller.ts +++ b/back/src/auth/auth.controller.ts @@ -314,31 +314,10 @@ export class AuthController { @UseGuards(JwtAuthGuard) @ApiBearerAuth() - @ApiOkResponse({ description: 'Successfully added score'}) - @ApiUnauthorizedResponse({ description: 'Invalid token' }) - @Patch('me/score/:score') - addScore( - @Request() req: any, - @Param('id') score: number, - ) { - return this.usersService.addScore( - +req.user.id, - score, - ); - } - - @UseGuards(JwtAuthGuard) - @ApiBearerAuth() - @ApiOkResponse({ description: 'Successfully added score'}) - @ApiUnauthorizedResponse({ description: 'Invalid token' }) - @Patch('me/score/:score') - addScore( - @Request() req: any, - @Param('id') score: number, - ) { - return this.usersService.addScore( - +req.user.id, - score, - ); + @ApiOkResponse({ description: "Successfully added score" }) + @ApiUnauthorizedResponse({ description: "Invalid token" }) + @Patch("me/score/:score") + addScore(@Request() req: any, @Param("id") score: number) { + return this.usersService.addScore(+req.user.id, score); } }