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
another way to get rid of the warning is defining an empty then():
then()
userController.login(req, res); // <- Get the warning here
userController.login(req, res).then(); // <- No warning