File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/common/src/dto/function Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,18 +6,18 @@ export class GetAllFunctionsDto {
66 @IsArray ( )
77 @IsString ( { each : true } )
88 @Type ( ( ) => String )
9- @Transform ( ( { value } ) => value . split ( ',' ) )
9+ @Transform ( ( { value } ) => Array . isArray ( value ) ? value : value . split ( ',' ) )
1010 contexts ?: string [ ] ;
1111 @IsOptional ( )
1212 @IsArray ( )
1313 @IsString ( { each : true } )
1414 @Type ( ( ) => String )
15- @Transform ( ( { value } ) => value . split ( ',' ) )
15+ @Transform ( ( { value } ) => Array . isArray ( value ) ? value : value . split ( ',' ) )
1616 names ?: string [ ] ;
1717 @IsOptional ( )
1818 @IsArray ( )
1919 @IsString ( { each : true } )
2020 @Type ( ( ) => String )
21- @Transform ( ( { value } ) => value . split ( ',' ) )
21+ @Transform ( ( { value } ) => Array . isArray ( value ) ? value : value . split ( ',' ) )
2222 ids ?: string [ ] ;
2323}
You can’t perform that action at this time.
0 commit comments