From 9dd3242732d67ebbe1556d1c12740d3b5d54d9cf Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Wed, 15 Oct 2025 13:54:36 +0330 Subject: [PATCH] fix : dto bug --- src/modules/product/DTO/createReportQuestion.dto.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/modules/product/DTO/createReportQuestion.dto.ts b/src/modules/product/DTO/createReportQuestion.dto.ts index d01bfde..c5cc940 100644 --- a/src/modules/product/DTO/createReportQuestion.dto.ts +++ b/src/modules/product/DTO/createReportQuestion.dto.ts @@ -1,17 +1,13 @@ +import { Expose } from "class-transformer"; import { IsNotEmpty, IsString, MinLength } from "class-validator"; import { ApiProperty } from "../../../common/decorator/swggerDocs"; export class CreateReportQuestionDTO { + @Expose() @IsNotEmpty() @IsString() @MinLength(3) @ApiProperty({ type: "string", description: "Title of the question", example: "نام کالا نادرست است" }) title: string; - - // @IsNotEmpty() - // @IsString() - // @MinLength(3) - // @ApiProperty({ type: "string", description: "placeholder of the question", example: "" }) - // placeholder: string; }