Skip to content

Commit

Permalink
HARMONY-1878: Add decorator to wktPrecision to make sure it is a posi…
Browse files Browse the repository at this point in the history
…tive number.
  • Loading branch information
ygliuvt committed Sep 27, 2024
1 parent f324af2 commit d4af25d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/harmony/app/util/env.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -108,6 +108,7 @@ class HarmonyServerEnv extends HarmonyEnv {
@Min(1)
maxDataOperationCacheSize: number;

@IsPositive()
wktPrecision: number;

locallyDeployedServices: string;
Expand Down

0 comments on commit d4af25d

Please sign in to comment.