I\'m using Express.js in my code with Node.js v7.3. In this I\'ve created a User Router which forwards the requests to my User Controlle
User Router
User Controlle
if you are really manic as me and the then() is not required but you need the warning to go away, a possible solution is:
then()
functionWithAsync.error(console.error);