Skip to content

Commit 9e45797

Browse files
committed
feature(microservices): use recursion for nested pattern object
1 parent 43b85aa commit 9e45797

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/microservices/utils/msvc.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class MsvcUtil {
3030

3131
// Creates the array of Pattern params from sorted keys and their corresponding values
3232
const sortedPatternParams = sortedKeys.map((key) =>
33-
`${key}:${pattern[key]}`);
33+
`${key}:${MsvcUtil.transformPatternToRoute(pattern[key])}`);
3434

3535
// Creates and returns the Route
3636
const sortedPattern = sortedPatternParams.join('/');

0 commit comments

Comments
 (0)