mirror of
https://github.com/meshtastic/web.git
synced 2026-03-13 03:16:38 -04:00
add optional to publishIntervalSecs and positionPrecision
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { Message } from "@bufbuild/protobuf";
|
||||
import type { Protobuf } from "@meshtastic/js";
|
||||
import { IsBoolean, IsString, Length, IsNumber } from "class-validator";
|
||||
import { IsBoolean, IsString, Length, IsNumber, IsOptional } from "class-validator";
|
||||
|
||||
export class MqttValidation
|
||||
implements
|
||||
@@ -46,9 +46,11 @@ export class MqttValidationMapReportSettings
|
||||
implements
|
||||
Omit<Protobuf.ModuleConfig.ModuleConfig_MapReportSettings, keyof Message>
|
||||
{
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
publishIntervalSecs: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
positionPrecision: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user