mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
6 changed files with 44 additions and 18 deletions
@ -1,11 +1,12 @@ |
|||
import { UpdateMarketDataDto } from '@ghostfolio/common/dtos'; |
|||
|
|||
import { Type } from 'class-transformer'; |
|||
import { ArrayNotEmpty, IsArray } from 'class-validator'; |
|||
import { ArrayNotEmpty, IsArray, ValidateNested } from 'class-validator'; |
|||
|
|||
export class UpdateBulkMarketDataDto { |
|||
@ArrayNotEmpty() |
|||
@IsArray() |
|||
@Type(() => UpdateMarketDataDto) |
|||
@ValidateNested({ each: true }) |
|||
marketData: UpdateMarketDataDto[]; |
|||
} |
|||
|
|||
Loading…
Reference in new issue