From 02083a0ab35f02ef3360a630587c84295c92276c Mon Sep 17 00:00:00 2001 From: mertalev <101130780+mertalev@users.noreply.github.com> Date: Mon, 25 Nov 2024 17:57:24 -0500 Subject: [PATCH] linting --- server/src/dtos/system-config.dto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/dtos/system-config.dto.ts b/server/src/dtos/system-config.dto.ts index a16ca3de7452f..b62196d479e6f 100644 --- a/server/src/dtos/system-config.dto.ts +++ b/server/src/dtos/system-config.dto.ts @@ -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[];