From b8a19775ec3bd93a64208a9024fb5beb88c67d8e Mon Sep 17 00:00:00 2001 From: "Fabio Azevedo (CTW)" Date: Tue, 2 May 2023 00:02:45 +0100 Subject: [PATCH] Fixed bug where param wasn't getting found --- apps/api/src/app/platform/platform.controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/src/app/platform/platform.controller.ts b/apps/api/src/app/platform/platform.controller.ts index ef80ce608..91c9501b1 100644 --- a/apps/api/src/app/platform/platform.controller.ts +++ b/apps/api/src/app/platform/platform.controller.ts @@ -52,7 +52,7 @@ export class PlatformController { @Put(':id') @UseGuards(AuthGuard('jwt')) public async updatePlatform( - @Param(':id') id: string, + @Param('id') id: string, @Body() data: UpdatePlatformDto ) { if ( @@ -87,7 +87,7 @@ export class PlatformController { @Delete(':id') @UseGuards(AuthGuard('jwt')) - public async deletePlatform(@Param(':id') id: string) { + public async deletePlatform(@Param('id') id: string) { if ( !hasPermission(this.request.user.permissions, permissions.deletePlatform) ) { @@ -96,7 +96,7 @@ export class PlatformController { StatusCodes.FORBIDDEN ); } - + console.log('id', id); const originalPlatform = await this.platformService.getPlatform({ id });