diff --git a/src/domain/model/video.ts b/src/domain/model/video.ts index a9f671b..3a13d05 100644 --- a/src/domain/model/video.ts +++ b/src/domain/model/video.ts @@ -18,6 +18,9 @@ export class Video { compensation: number; + @Transform(({ value }) => { + if (value) return parseInt(value); + }) views: number; @IsString()