Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
intrn(rule set): allow multiple ID initial pipes be different
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Sep 13, 2022
1 parent ebf6e4d commit 1ae7429
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/rule_sets/make_multi-id-based_filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import stringArray from "!/validators/hybrid/string_array"
export default function(
ClassName: BaseManagerClass,
{
initialPipe = nullable,
initialPipes = [ nullable ],
multipleIDKey = "IDs",
mustCast = true
}: Partial<{
initialPipe: Pipe,
initialPipes: Pipe[],
multipleIDKey: string,
mustCast: boolean
}> = {}
Expand All @@ -39,7 +39,7 @@ export default function(
"minimum": 1
}
},
"pipes": [ initialPipe, stringArray, length ]
"pipes": [ ...initialPipes, stringArray, length ]
}
}
}

0 comments on commit 1ae7429

Please sign in to comment.