Bigghead / fcc-nightlife

Home Page:https://calm-shelf-79440.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User is able to add himself to a bar, but it doesn't show

Bigghead opened this issue · comments

On the get bars route, we loop through each yelp data. We then query the DB for each item in the data and look if that item's id is inside the DB.

It should work theoretically, but the Node's asynchronicity doesn't wait for each looped item's DB query to finish before moving on to the next thing.

Trying out Async.js