Skip to content

Commit

Permalink
Merge branch 'ideal123-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jotamorais committed Apr 22, 2020
2 parents 9b5d39d + b4fe5d3 commit e7be722
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/metadata-builder/MetadataBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ export class MetadataBuilder {
protected createInterceptors(classes?: Function[]): InterceptorMetadata[] {
const interceptors = !classes ? getMetadataArgsStorage().interceptors : getMetadataArgsStorage().filterInterceptorMetadatasForClasses(classes);
return interceptors.map(interceptorArgs => new InterceptorMetadata({
target: interceptorArgs.target,
method: undefined,
...interceptorArgs,
interceptor: interceptorArgs.target
}));
}
Expand Down

0 comments on commit e7be722

Please sign in to comment.