Open issam-seghir opened 9 months ago
is this tool a replacement of this :
function asyncWrapper(fn) { return function (req, res, next) { fn(req, res, next).catch(next); }; } app.get('/route', asyncWrapper(async (req, res, next) => { const data = await someAsyncOperation(); res.json(data); }));
yes. stop doing that.
is this tool a replacement of this :