From 035fb50fb6b9ab16953fd669e5ab034ea8ba558d Mon Sep 17 00:00:00 2001 From: miensoap Date: Wed, 6 Nov 2024 14:07:12 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20form=20=EC=9D=B8=EC=9E=90=EB=AA=85?= =?UTF-8?q?=20request=20=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/map/map.controller.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/map/map.controller.ts b/backend/src/map/map.controller.ts index 04d4864e..6fa6c38d 100644 --- a/backend/src/map/map.controller.ts +++ b/backend/src/map/map.controller.ts @@ -33,9 +33,9 @@ export class MapController { } @Post() - async createMap(@Body() createMapForm: CreateMapRequest) { + async createMap(@Body() createMapRequest: CreateMapRequest) { const userId = 1; // Todo. 로그인 기능 완성 후 수정 - return await this.appService.createMap(userId, createMapForm); + return await this.appService.createMap(userId, createMapRequest); } @Delete('/:id') @@ -46,10 +46,10 @@ export class MapController { @Patch('/:id/info') async updateMapInfo( @Param('id') id: number, - @Body() updateMapForm: UpdateMapInfoRequest, + @Body() updateMapInfoRequest: UpdateMapInfoRequest, ) { - await this.appService.updateMapInfo(id, updateMapForm); - return { id, ...updateMapForm }; + await this.appService.updateMapInfo(id, updateMapInfoRequest); + return { id, ...updateMapInfoRequest }; } @Patch('/:id/visibility')