Open aeksco opened 6 years ago
@TungE Just a note - start doing this in the smallgroup.controller.js
file - work on one function at a time, and commit your changes after you update each function. You can run npm test
from the observatory-server
root to ensure that your changes haven't broken anything :+1:
All our Express.js controllers use callbacks when interacting with our Mongoose models - like so:
These functions should be updated to use the async/await syntax, like so:
@TungE LMK if you've got any questions - sorry for the delay!