Fix user validation
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { IsBoolean, Length } from "class-validator";
|
||||
import { IsBoolean, IsOptional, IsString, Length } from "class-validator";
|
||||
|
||||
import type { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
|
||||
export class UserValidation
|
||||
implements Omit<Protobuf.User, "macaddr" | "hwModel">
|
||||
{
|
||||
@Length(2, 30)
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
id: string;
|
||||
|
||||
@Length(2, 30)
|
||||
|
||||
Reference in New Issue
Block a user