Skip to content

Commit

Permalink
Merge pull request #83 from depromeet/dev
Browse files Browse the repository at this point in the history
🔨 fix(letter): 쿼리 받은걸 파람으로 수정...
  • Loading branch information
ImNM authored Jun 10, 2022
2 parents bab852b + 05c9752 commit a6f1140
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 a6f1140

Please sign in to comment.