Skip to content

Commit 324569b

Browse files
committed
fix: not all fields are covered by decorators in review
1 parent bc93620 commit 324569b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/review/review.controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class ReviewController {
2727

2828
@Get()
2929
@ApiOperation({ summary: 'Поиск отзывов' })
30-
@ApiDotNotationQuery(Review, PaginatedQueryDto)
30+
@ApiDotNotationQuery(Review)
3131
@ApiResponse({ type: ReviewDocsResponseDto, isArray: true })
3232
async finManyByQuery(
3333
@Query(ParseDotNotationQuery, ValidationPipe) dto: FindManyReviewDto,

src/review/schemas/review.schema.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export class Review extends Document {
3030
review: string;
3131

3232
@ApiPropertyOptional()
33-
@Prop()
34-
date: Date;
33+
@Prop({ type: () => Date })
34+
date: string;
3535

3636
@ApiPropertyOptional()
3737
@Prop()

0 commit comments

Comments
 (0)