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
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 43s
This commit is contained in:
parent
3e77a79e79
commit
ecb9a27d8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue