mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
13 lines
382 B
TypeScript
13 lines
382 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsEnum } from 'class-validator';
|
|
import { LogLevel } from 'src/entities/system-config.entity';
|
|
import { ValidateBoolean } from 'src/validation';
|
|
|
|
export class SystemConfigLoggingDto {
|
|
@ValidateBoolean()
|
|
enabled!: boolean;
|
|
|
|
@ApiProperty({ enum: LogLevel, enumName: 'LogLevel' })
|
|
@IsEnum(LogLevel)
|
|
level!: LogLevel;
|
|
}
|