fix: Fix previw/delivery switch
This commit is contained in:
committed by
Benedikt Rötsch
parent
3f16c4531c
commit
f61c13d02e
@@ -8,6 +8,7 @@
|
||||
exports.catchErrors = (fn) => {
|
||||
return function (req, res, next) {
|
||||
return fn(req, res, next).catch((e) => {
|
||||
console.log(e)
|
||||
next(e)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user