From d44609208c46fdddac0c7f3d9abc2609382efeb9 Mon Sep 17 00:00:00 2001 From: Krishna Das Date: Mon, 13 Jan 2025 14:35:14 +0530 Subject: [PATCH] feat: ARM-2020 Fix parameter name in getCustomContentsByTypeInSpace --- src/proxy-api/dto/GetCustomContentsInSpaceParams.ts | 2 +- src/proxy-api/proxy-api.controller.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/proxy-api/dto/GetCustomContentsInSpaceParams.ts b/src/proxy-api/dto/GetCustomContentsInSpaceParams.ts index a25aef068..63dd3edc7 100644 --- a/src/proxy-api/dto/GetCustomContentsInSpaceParams.ts +++ b/src/proxy-api/dto/GetCustomContentsInSpaceParams.ts @@ -11,5 +11,5 @@ export default class GetCustomContentsInSpaceParamsDTO { }) @IsNotEmpty() @IsString() - spaceId: number; + id: number; } diff --git a/src/proxy-api/proxy-api.controller.ts b/src/proxy-api/proxy-api.controller.ts index 97fd079d7..00db15327 100644 --- a/src/proxy-api/proxy-api.controller.ts +++ b/src/proxy-api/proxy-api.controller.ts @@ -262,14 +262,14 @@ export class ProxyApiController { @ApiOkResponse({ description: 'Get Custom Contents by Type in a Space', }) - @Get('spaces/:id/custom-content') + @Get('spaces/:id/custom-content?') async getCustomContentsByTypeInSpace( @Param() params: GetCustomContentsInSpaceParamsDTO, @Query() queries: GetCustomContentsInSpaceQueryDTO, ): Promise { return this.proxyApi.getCustomContentsByTypeInSpace( queries.type, - params.spaceId, + params.id, queries.next, ); }