fix: actually override function in LoggedRoute

This commit is contained in:
Shinwoo PARK 2023-12-10 17:38:55 +09:00
parent 240ae66b9b
commit bf9d0b365e
2 changed files with 5 additions and 0 deletions

2
dist/lib/logged.js vendored
View File

@ -194,6 +194,8 @@ function LoggedRoute(route) {
}, key, { }, key, {
fullRoute, fullRoute,
}); });
_target[key] = overrideFunction;
descriptor.value = overrideFunction;
}; };
} }
exports.LoggedRoute = LoggedRoute; exports.LoggedRoute = LoggedRoute;

View File

@ -359,5 +359,8 @@ export function LoggedRoute<F extends Array<any>, R>(route?: string) {
fullRoute, fullRoute,
} }
); );
_target[key] = overrideFunction;
descriptor.value = overrideFunction;
}; };
} }