From 1f524be1278aedfe6ee6d6bba97dc2e2551adb46 Mon Sep 17 00:00:00 2001 From: hamza Date: Sun, 24 Sep 2023 19:55:08 +0300 Subject: [PATCH] fix: controller argument issues. --- blog/src/blog.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blog/src/blog.controller.ts b/blog/src/blog.controller.ts index 0f30841..f236329 100644 --- a/blog/src/blog.controller.ts +++ b/blog/src/blog.controller.ts @@ -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';