const handleErrorAsync = func => (req, res, next) => { func(req, res, next).catch((error) => next(error)); };