change validation type to IsNumber

This commit is contained in:
Jon Rumsey
2024-05-20 16:39:04 -07:00
parent 5fdd07ee68
commit 5f6485dc22
+2 -2
View File
@@ -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>
@@ -11,7 +11,7 @@ export class PowerValidation
@IsInt()
onBatteryShutdownAfterSecs: number;
@IsInt()
@IsNumber()
@Min(2)
@Max(4)
adcMultiplierOverride: number;