mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-24 20:59:28 +00:00
fix pagination and create pagination service
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { IsEmail, Length } from 'class-validator'
|
||||
import { IsEmail, Length, IsOptional } from 'class-validator'
|
||||
|
||||
export class RegistrationDto {
|
||||
@Length(3, 30)
|
||||
@IsOptional()
|
||||
name: string
|
||||
@Length(3, 30)
|
||||
password: string
|
||||
|
||||
Reference in New Issue
Block a user