code: function awaitFunction(fn) {
    return (req, res, next) => {
      Promise.resolve(fn(req, res, next)).catch(next);
    };
  }
docs: Turn async function into regular function
  @param  {Function} fn
  @return {Function}