From dbb6f2f99f0bbe393a5e87d4109d842cef995f86 Mon Sep 17 00:00:00 2001 From: Yonggang Liu Date: Fri, 27 Sep 2024 15:27:06 -0400 Subject: [PATCH] HARMONY-1878: Add decorator to wktPrecision to make sure it is a positive number. --- services/harmony/app/util/env.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/harmony/app/util/env.ts b/services/harmony/app/util/env.ts index 45a0656d0..b224c03cb 100644 --- a/services/harmony/app/util/env.ts +++ b/services/harmony/app/util/env.ts @@ -1,4 +1,4 @@ -import { IsInt, IsNotEmpty, Matches, Min } from 'class-validator'; +import { IsInt, IsNotEmpty, IsPositive, Matches, Min } from 'class-validator'; import { HarmonyEnv, memorySizeRegex } from '@harmony/util/env'; import _ from 'lodash'; import * as path from 'path'; @@ -108,6 +108,7 @@ class HarmonyServerEnv extends HarmonyEnv { @Min(1) maxDataOperationCacheSize: number; + @IsPositive() wktPrecision: number; locallyDeployedServices: string;