Skip to content

Commit

Permalink
bugfix(microservices) exclude duplicated methods #2557
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Sep 10, 2019
1 parent fbb894a commit d3bea8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/metadata-scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export class MetadataScanner {
prototype: any,
callback: (name: string) => R,
): R[] {
return iterate([...this.getAllFilteredMethodNames(prototype)])
const methodNames = new Set(this.getAllFilteredMethodNames(prototype));
return iterate(methodNames)
.map(callback)
.filter(metadata => !isNil(metadata))
.toArray();
Expand Down

0 comments on commit d3bea8a

Please sign in to comment.