Skip to content

Commit

Permalink
refactor(core): remove temp variable on applyVersionFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
micalevisk committed May 18, 2022
1 parent 0e337d0 commit 696672e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/core/router/router-explorer.ts
Expand Up @@ -332,9 +332,12 @@ export class RouterExplorer {
routePathMetadata: RoutePathMetadata,
handler: Function,
) {
const { versioningOptions } = routePathMetadata;
const version = this.routePathFactory.getVersion(routePathMetadata);
return router.applyVersionFilter(handler, version, versioningOptions);
return router.applyVersionFilter(
handler,
version,
routePathMetadata.versioningOptions,
);
}

private createCallbackProxy(
Expand Down

0 comments on commit 696672e

Please sign in to comment.