From 0537001fe3522f8c936f19db448ab4fe93092722 Mon Sep 17 00:00:00 2001 From: Kshitija Kadam Date: Thu, 21 Mar 2024 11:00:15 +0530 Subject: [PATCH] chore : reverted promotion param --- src/altStudent/dto/alt-student.dto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/altStudent/dto/alt-student.dto.ts b/src/altStudent/dto/alt-student.dto.ts index 4318102e..cdf92ab0 100644 --- a/src/altStudent/dto/alt-student.dto.ts +++ b/src/altStudent/dto/alt-student.dto.ts @@ -198,7 +198,7 @@ export class StudentDto { example: Promotion.promoted, }) @Expose() - @Transform(({ value }) => (value ? value.trim() : value)) + @Transform(({ value }) => (value.trim() === "" ? null : value)) @IsEnum(Promotion) @IsOptional() promotion: string; // keep blank when user is new