Skip to content

Commit

Permalink
Merge pull request #105 from CodeVac513/fix/transform-limit
Browse files Browse the repository at this point in the history
🐛 fix: limit이 string으로 연산되는 버그 수정
  • Loading branch information
CodeVac513 authored Nov 18, 2024
2 parents 594642c + cb10dd8 commit d229888
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/feed/feed.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ export class FeedController {
@ApiGetFeedList()
@Get('')
@HttpCode(HttpStatus.OK)
@UsePipes(ValidationPipe)
@UsePipes(
new ValidationPipe({
transform: true,
}),
)
async getFeedList(@Query() queryFeedDto: QueryFeedDto) {
const feedList = await this.feedService.getFeedList(queryFeedDto);
const hasMore = this.feedService.existNextFeed(
Expand Down

0 comments on commit d229888

Please sign in to comment.