Seemingly accidentally ended up with an infinite loop.Hopefullly this fixes it
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 43s

This commit is contained in:
Alan Bridgeman 2025-06-24 07:41:39 -05:00
parent 3e77a79e79
commit ecb9a27d8d

View file

@ -77,7 +77,7 @@ export function Controller<T extends { new (...args: any[]): BaseController }>()
// If `fn` is the two parameter variant force it to be a three parameter variant
// This is because of how error handling is done in the framework (based on how Express does it)
if(fn.length === 2) {
fn = (req: Request, res: Response, next: NextFunction) => fn(req, res, next);
fn = (req: Request, res: Response, next: NextFunction) => target.prototype[method](req, res, next);
}
// Get the path