gymco / src /common /middleware /asyncHandler.js
moustafa7's picture
Upgrade gym SaaS workflows and Hugging Face CSP
2b109bf
Raw History Blame Contribute Delete
117 Bytes
export const asyncHandler = (handler) => (req, res, next) =>
Promise.resolve(handler(req, res, next)).catch(next);