code: function middleware3() {
  	return function mw3(handler) {
  
  		return async function mw3(ctx) {
  			broker.logger.info(chalk.cyan("mw3 before", ctx.action.name));
  			//return broker.Promise.resolve("data from mw3");
  			const res = await handler(ctx);
  			broker.logger.info(chalk.cyan("mw3 after", ctx.action.name));
  			if (res) {
  				if (ctx.action.name == "users.get")
  					delete res.gravatar;
  				if (ctx.action.name == "posts.get")
  					delete res.content;
  			}
  			return res;
  		};
  	};
  }
docs: Async/await example