fix: actually override function in LoggedRoute
This commit is contained in:
parent
240ae66b9b
commit
bf9d0b365e
2
dist/lib/logged.js
vendored
2
dist/lib/logged.js
vendored
@ -194,6 +194,8 @@ function LoggedRoute(route) {
|
|||||||
}, key, {
|
}, key, {
|
||||||
fullRoute,
|
fullRoute,
|
||||||
});
|
});
|
||||||
|
_target[key] = overrideFunction;
|
||||||
|
descriptor.value = overrideFunction;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
exports.LoggedRoute = LoggedRoute;
|
exports.LoggedRoute = LoggedRoute;
|
||||||
|
@ -359,5 +359,8 @@ export function LoggedRoute<F extends Array<any>, R>(route?: string) {
|
|||||||
fullRoute,
|
fullRoute,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
_target[key] = overrideFunction;
|
||||||
|
descriptor.value = overrideFunction;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user