* add first concept * completed configuration ui update * add button for testing email configuration * improve mobile layout * add migration * run formatter * delete unnecessary modal * remove unused comment
13 lines
251 B
TypeScript
13 lines
251 B
TypeScript
import { IsNotEmpty, IsString, ValidateIf } from "class-validator";
|
|
|
|
class UpdateConfigDTO {
|
|
@IsString()
|
|
key: string;
|
|
|
|
@IsNotEmpty()
|
|
@ValidateIf((dto) => dto.value !== "")
|
|
value: string | number | boolean;
|
|
}
|
|
|
|
export default UpdateConfigDTO;
|