This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.asyncHandler = asyncHandler;
|
||||
function asyncHandler(handler) {
|
||||
return (req, res, next) => {
|
||||
handler(req, res, next).catch(next);
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=asyncHandler.js.map
|
||||
Reference in New Issue
Block a user