diff --git a/dist/lib/logged.js b/dist/lib/logged.js index c99b854..7379e96 100644 --- a/dist/lib/logged.js +++ b/dist/lib/logged.js @@ -194,6 +194,8 @@ function LoggedRoute(route) { }, key, { fullRoute, }); + _target[key] = overrideFunction; + descriptor.value = overrideFunction; }; } exports.LoggedRoute = LoggedRoute; diff --git a/src/logged.ts b/src/logged.ts index 9d0db83..3e16f28 100644 --- a/src/logged.ts +++ b/src/logged.ts @@ -359,5 +359,8 @@ export function LoggedRoute<F extends Array<any>, R>(route?: string) { fullRoute, } ); + + _target[key] = overrideFunction; + descriptor.value = overrideFunction; }; }