Skip to content

Commit

Permalink
πŸ› :: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonchaegeon committed May 26, 2022
1 parent 60d734d commit b090ddb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/domain/model/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export class Video {

compensation: number;

@Transform(({ value }) => {
if (value) return parseInt(value);
})
views: number;

@IsString()
Expand Down

0 comments on commit b090ddb

Please sign in to comment.