From bf9d0b365e80909a563873b97728577b5e01309f Mon Sep 17 00:00:00 2001 From: Shinwoo PARK Date: Sun, 10 Dec 2023 17:38:55 +0900 Subject: [PATCH] fix: actually override function in LoggedRoute --- dist/lib/logged.js | 2 ++ src/logged.ts | 3 +++ 2 files changed, 5 insertions(+) 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, R>(route?: string) { fullRoute, } ); + + _target[key] = overrideFunction; + descriptor.value = overrideFunction; }; }