Adjusted the validation type

ref #56
This commit is contained in:
niggl committed 2020-12-29 20:05:35 +01:00
1 parent 500b94b44a
commit b7cbe2a0b4
1 file changed
+2 -2
+2 -2
View File
@@ -1,4 +1,4 @@
import { IsOptional, IsString } from 'class-validator'; import { IsBoolean, IsOptional, IsString } from 'class-validator';
import crypto from "crypto"; import crypto from "crypto";
import { StatsClient } from '../entities/StatsClient'; import { StatsClient } from '../entities/StatsClient';
/** /**
@@ -15,7 +15,7 @@ export class CreateStatsClient {
/** /**
* Is the new client enabled. * Is the new client enabled.
*/ */
@IsString() @IsBoolean()
@IsOptional() @IsOptional()
enabled?: boolean; enabled?: boolean;