Open Byunk opened 8 months ago
Undefined is passed to middleware when the middleware is registered with router.use.
router.use
The error case:
router.use(wrapAsync(validateOrganization)); router.get( '/:organization_id/:year/:half', wrapAsync(async (req: Request, res: Response, next: NextFunction) => { ... }
It is resolved if:
router.get( '/:organization_id/:year/:half', wrapAsync(validateOrganization), wrapAsync(async (req: Request, res: Response, next: NextFunction) => { ... }
Undefined is passed to middleware when the middleware is registered with
router.use
.The error case:
It is resolved if: