Skip to content

Commit

Permalink
refactor: form 인자명 request 로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Miensoap committed Nov 6, 2024
1 parent 2744235 commit 035fb50
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backend/src/map/map.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand Down

0 comments on commit 035fb50

Please sign in to comment.