Closed neilfr closed 5 years ago
reopening... seems the display of the goal data isn't always up-to-date - I think its an async problem... where it is sometimes counting and reporting the goal totals before the database is getting updated with all the goals. I've been experimenting with callbacks and promises... but without luck... so I'm clearly not 100% getting how to fix this :-)
Fixed! had an async bug. it seems that the api route has to return something... even if you don't need it... in order for the promise to get fulfilled.
done... but it needs some styling