Skip to content

Commit

Permalink
change validation type to IsNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
nojronatron committed May 20, 2024
1 parent 5fdd07e commit 5f6485d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation/config/power.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Message } from "@bufbuild/protobuf";
import type { Protobuf } from "@meshtastic/js";
import { IsBoolean, IsInt, Max, Min } from "class-validator";
import { IsBoolean, IsInt, IsNumber, Max, Min } from "class-validator";

export class PowerValidation
implements Omit<Protobuf.Config.Config_PowerConfig, keyof Message>
Expand All @@ -11,7 +11,7 @@ export class PowerValidation
@IsInt()
onBatteryShutdownAfterSecs: number;

@IsInt()
@IsNumber()
@Min(2)
@Max(4)
adcMultiplierOverride: number;
Expand Down

0 comments on commit 5f6485d

Please sign in to comment.