We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11547a1 commit cabb1a4Copy full SHA for cabb1a4
src/post/dto/req/myPostFilter.dto.ts
@@ -8,6 +8,7 @@ export class MyPostFilterDto {
8
enumName: 'PostType',
9
description: 'Type of post (FOUND or LOST)',
10
example: PostType.FOUND,
11
+ required: false,
12
})
13
@IsEnum(PostType)
14
@IsOptional()
src/post/post.controller.ts
@@ -69,7 +69,6 @@ export class PostController {
69
@UseGuards(IdPGuard)
70
async getMyPosts(
71
@GetUser() user: User,
72
-
73
@Query() myPostFilterDto: MyPostFilterDto,
74
): Promise<PostListDto> {
75
return this.postService.getMyPostList(user.uuid, myPostFilterDto);
0 commit comments