97f53b4
1
2
3
4
5
6
7
8
9
let catchAsyncError = (fn) => { return (req, res, next) => { fn(req, res, next).catch((err) => next(err)); }; }; module.exports = catchAsyncError;