Adjusted the validation type

ref #56
This commit is contained in:
Nicolai Ort 2020-12-29 20:05:35 +01:00
parent 500b94b44a
commit b7cbe2a0b4
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { IsOptional, IsString } from 'class-validator';
import { IsBoolean, IsOptional, IsString } from 'class-validator';
import crypto from "crypto";
import { StatsClient } from '../entities/StatsClient';
/**
@ -15,7 +15,7 @@ export class CreateStatsClient {
/**
* Is the new client enabled.
*/
@IsString()
@IsBoolean()
@IsOptional()
enabled?: boolean;