fac24 / Week-4-Sonia-Peter-George-Petra

COCORICO 🧀
http://cocorico.herokuapp.com
2 stars 1 forks source link

Q. re: async await #30

Open mariaalouisaa opened 2 years ago

mariaalouisaa commented 2 years ago

I get the use of the async await in the login.js & signup.js files (good job in implementing those!) but just wondering what the advantage is on using in the model.js file for the db.query()'s?

sonianb commented 2 years ago

It's the same advantage I'd say, to improve the readability of the code in our model.js as well.