From 7f05592ca5cd90a34e91925e04f66cc84fa85962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20G=C3=B3mez?= Date: Wed, 25 Dec 2024 20:38:20 +0100 Subject: [PATCH] Remove positive contributions constraint (#683) --- src/portfolios/routes/dto/add-portfolio-contribution.dto.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/portfolios/routes/dto/add-portfolio-contribution.dto.ts b/src/portfolios/routes/dto/add-portfolio-contribution.dto.ts index 870696e3..0e9acf37 100644 --- a/src/portfolios/routes/dto/add-portfolio-contribution.dto.ts +++ b/src/portfolios/routes/dto/add-portfolio-contribution.dto.ts @@ -1,6 +1,6 @@ import { ApiProperty } from '@nestjs/swagger'; import { Type } from 'class-transformer'; -import { IsNumber, IsPositive } from 'class-validator'; +import { IsNumber } from 'class-validator'; import { AddPortfolioContributionDto as DomainAddPortfolioContributionDto } from '../../domain/dto/add-portfolio-contribution.dto'; export class AddPortfolioContributionDto @@ -11,6 +11,5 @@ export class AddPortfolioContributionDto @ApiProperty() @Type(() => Number) @IsNumber() - @IsPositive() amountEUR: number; }