Skip to content

Commit

Permalink
fix: controller argument issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-cskn committed Sep 24, 2023
1 parent b9cb358 commit 1f524be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blog/src/blog.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export class BlogController {
@UseGuards(TokenGuard)
@Get()
findAll(
@Query('showUnverified') showUnverified,
@Query('showUnverified') showUnverified:string | boolean = false,
@Query('limit') limit = 50,
@Query('offset') offset = 0,
@Query('plainText') plainText,
@Query('plainText') plainText:string | boolean = false,
) {
plainText = plainText === 'true';
showUnverified = showUnverified === 'true';
Expand Down

0 comments on commit 1f524be

Please sign in to comment.