style: apply standard ESLint & Prettier formatting across backend
Deploy Canina / deploy (push) Successful in 4m58s

This commit is contained in:
parsa aghaei committed 2026-07-29 15:41:53 +03:30
1 parent ae636c8b03
commit 62bd8811fa
66 files changed
+1398 -607

No files matched your search

+11 -2
View File
@@ -1,4 +1,10 @@
import { IsEmail, IsNotEmpty, IsOptional, IsString, MinLength } from 'class-validator';
import {
IsEmail,
IsNotEmpty,
IsOptional,
IsString,
MinLength,
} from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
export class RegisterDto {
@@ -12,7 +18,10 @@ export class RegisterDto {
@IsString()
lastName: string;
@ApiPropertyOptional({ description: 'ایمیل (اختیاری)', example: 'ali@example.com' })
@ApiPropertyOptional({
description: 'ایمیل (اختیاری)',
example: 'ali@example.com',
})
@IsOptional()
@IsEmail({}, { message: 'ایمیل نامعتبر است' })
email?: string;