Skip to content

Commit

Permalink
Remove positive contributions constraint (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorgomezv authored Dec 25, 2024
1 parent be5a1a6 commit 7f05592
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/portfolios/routes/dto/add-portfolio-contribution.dto.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -11,6 +11,5 @@ export class AddPortfolioContributionDto
@ApiProperty()
@Type(() => Number)
@IsNumber()
@IsPositive()
amountEUR: number;
}

0 comments on commit 7f05592

Please sign in to comment.