Skip to content

Commit

Permalink
add WGUWU to indicator coefficients DTO
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Dec 15, 2024
1 parent f2d0a07 commit 4801b45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,12 @@ export class IndicatorCoefficientsDto {
@IsNotEmpty()
@IsNumber()
[INDICATOR_NAME_CODES.WC]: number;

@ApiPropertyOptional()
@IsOptional()
@Max(1000000)
@Min(0)
@IsNotEmpty()
@IsNumber()
[INDICATOR_NAME_CODES.WGUWU]: number;
}
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ describe('Impact Calculator Tests', () => {
[INDICATOR_NAME_CODES.GHG_FARM]: 0.2,
[INDICATOR_NAME_CODES.WW]: 0.3,
[INDICATOR_NAME_CODES.WC]: 0.4,
[INDICATOR_NAME_CODES.WGUWU]: 0.5,
};

//ACT
Expand Down

0 comments on commit 4801b45

Please sign in to comment.