mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-26 20:59:28 +00:00
fix: correct type for maxCardsCount and minCardsCount
fix: correct default html for password recovery
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
import { ApiHideProperty } from '@nestjs/swagger'
|
||||
import { IsUUID } from 'class-validator'
|
||||
import { Type } from 'class-transformer'
|
||||
import { IsNumber, IsOptional, IsUUID } from 'class-validator'
|
||||
|
||||
import { PaginationDto } from '../../../infrastructure/common/pagination/pagination.dto'
|
||||
import { IsOptionalOrEmptyString, IsOrderBy } from '../../../infrastructure/decorators'
|
||||
|
||||
export class GetAllDecksDto extends PaginationDto {
|
||||
@IsOptionalOrEmptyString()
|
||||
minCardsCount?: string
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsNumber()
|
||||
minCardsCount?: number
|
||||
|
||||
@IsOptionalOrEmptyString()
|
||||
maxCardsCount?: string
|
||||
@IsOptional()
|
||||
@Type(() => Number)
|
||||
@IsNumber()
|
||||
maxCardsCount?: number
|
||||
|
||||
/** Search by deck name */
|
||||
@IsOptionalOrEmptyString()
|
||||
|
||||
Reference in New Issue
Block a user