Skip to content

Commit

Permalink
🔨 fix(letter): 쿼리 받은걸 파람으로 수정...
Browse files Browse the repository at this point in the history
  • Loading branch information
ImNM committed Jun 10, 2022
1 parent 3c2531c commit 05c9752
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/apis/letter/letter.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import {
Post,
Body,
Patch,
Param,
Delete,
Query,
Param,
UsePipes,
SerializeOptions,
UseGuards,
Expand Down Expand Up @@ -58,7 +57,7 @@ export class LetterController {
})
@Post(':userId')
sendLetterToReciever(
@Query() receiver: UserIdDto,
@Param() receiver: UserIdDto,
@ReqUser() user: User,
@Body() messageStringDto: MessageStringDto,
) {
Expand All @@ -80,7 +79,7 @@ export class LetterController {
})
@Get(':letterRoomId')
getRoomInLetters(
@Query() letterRoomIdDto: LetterRoomIdDto,
@Param() letterRoomIdDto: LetterRoomIdDto,
@ReqUser() user: User,
) {
return this.letterService.getLettersByRoomId(
Expand Down Expand Up @@ -113,7 +112,7 @@ export class LetterController {
})
@Delete(':letterRoomId')
deleteLetterRooms(
@Query() letterRoomIdDto: LetterRoomIdDto,
@Param() letterRoomIdDto: LetterRoomIdDto,
@ReqUser() user: User,
) {
return this.letterService.leaveLetterRoomByRoomId(
Expand Down

0 comments on commit 05c9752

Please sign in to comment.