mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-01-15 01:14:27 -05:00
fix: allow empty strings in config variable
This commit is contained in:
parent
cbe37c6798
commit
b8172efd59
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
||||||
import { IsNotEmpty } from "class-validator";
|
import { IsNotEmpty, ValidateIf } from "class-validator";
|
||||||
|
|
||||||
class UpdateConfigDTO {
|
class UpdateConfigDTO {
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
|
@ValidateIf((dto) => dto.value !== "")
|
||||||
value: string | number | boolean;
|
value: string | number | boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue