Skip to content

Commit

Permalink
fix(Interceptors): order of global interceptors
Browse files Browse the repository at this point in the history
  • Loading branch information
ideal123 committed Mar 3, 2020
1 parent a00d08d commit b4fe5d3
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 b4fe5d3

Please sign in to comment.