From e31a07f5d9db46f8bd3fd03569737f0c477c2892 Mon Sep 17 00:00:00 2001 From: chyoo Date: Mon, 13 Jul 2026 17:14:19 +0900 Subject: [PATCH] add admin issue.. --- src/admins/dto.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/admins/dto.ts b/src/admins/dto.ts index adbefcb..8ec591a 100644 --- a/src/admins/dto.ts +++ b/src/admins/dto.ts @@ -1,3 +1,4 @@ +import { Transform } from 'class-transformer'; import { IsArray, IsBoolean, IsEmail, IsEnum, IsOptional, IsString, IsUUID, MinLength } from 'class-validator'; import { AdminRole } from './admin-role'; @@ -24,6 +25,7 @@ export class ListAdminsQuery { } export class CreateAdminDto { + @Transform(({ value }) => typeof value === 'string' ? value.trim().toLowerCase() : value) @IsEmail() email!: string;