hakumizuki před 4 roky
rodič
revize
90166f0ea0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/server/middlewares/http-error-handler.js

+ 1 - 1
src/server/middlewares/http-error-handler.js

@@ -15,7 +15,7 @@ const isHttpError = (val) => {
     && val.status === val.statusCode;
 };
 
-module.exports = (err, req, res, next) => {
+module.exports = async(err, req, res, next) => {
   // handle if the err is a HttpError instance
   if (isHttpError(err)) {
     const httpError = err;