diff --git a/src/modules/users/DTO/search-customers.dto.ts b/src/modules/users/DTO/search-customers.dto.ts index b0654c9..7987e61 100644 --- a/src/modules/users/DTO/search-customers.dto.ts +++ b/src/modules/users/DTO/search-customers.dto.ts @@ -1,17 +1,10 @@ import { ApiPropertyOptional } from "@nestjs/swagger"; -import { Type } from "class-transformer"; import { IsOptional, IsString } from "class-validator"; import { PaginationDto } from "../../../common/DTO/pagination.dto"; import { FinancialMessage } from "../../../common/enums/message.enum"; export class SearchCustomersDto extends PaginationDto { - @IsOptional() - @Type(() => Number) - // @IsBoolean({ message: CategoryMessage.IS_ACTIVE_SHOULD_BE_BOOLEAN }) - @ApiPropertyOptional({ description: "Category status", example: 1 }) - isActive?: number; - @IsOptional() @IsString({ message: FinancialMessage.SEARCH_QUERY_MUST_BE_A_STRING }) @ApiPropertyOptional({ description: "search query", example: "search query" })