fix: Fix previw/delivery switch

This commit is contained in:
Khaled Garbaya
2017-10-16 15:52:01 +02:00
committed by Benedikt Rötsch
parent 3f16c4531c
commit f61c13d02e
7 changed files with 25 additions and 14 deletions

View File

@@ -8,6 +8,7 @@
exports.catchErrors = (fn) => {
return function (req, res, next) {
return fn(req, res, next).catch((e) => {
console.log(e)
next(e)
})
}