Skip to content

Commit

Permalink
Merge pull request #1455 from rodekruis/fix.typhoon-pipeline
Browse files Browse the repository at this point in the history
fix: timestamp trackpoing in typhoon pipeline AB#23372
  • Loading branch information
jannisvisser authored Aug 29, 2023
2 parents 44465c5 + 5550a06 commit 0e84b18
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import {
IsBoolean,
IsDate,
IsEnum,
IsNotEmpty,
IsNumber,
IsString,
} from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { Type } from 'class-transformer';

export enum TyphoonCategory {
TD = 'TD',
Expand All @@ -28,7 +29,8 @@ export class TrackpointDetailsDto {

@ApiProperty({ example: new Date() })
@IsNotEmpty()
@IsString()
@IsDate()
@Type(() => Date)
public timestampOfTrackpoint: Date;

@ApiProperty({ example: 100 })
Expand Down

0 comments on commit 0e84b18

Please sign in to comment.