Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mertalev committed Nov 25, 2024
1 parent c5c8df6 commit 02083a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/dtos/system-config.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class SystemConfigMachineLearningDto {

@IsUrl({ require_tld: false, allow_underscores: true }, { each: true })
@ArrayMinSize(1)
@Transform(({ value }) => (value instanceof Array ? value : [value]))
@Transform(({ value }) => (Array.isArray(value) ? value : [value]))
@ValidateIf((dto) => dto.enabled)
@ApiProperty({ type: 'array', items: { type: 'string', format: 'uri' }, minItems: 1 })
url!: string[];
Expand Down

0 comments on commit 02083a0

Please sign in to comment.