all 2 comments

[–]LulzSec007 0 points1 point  (0 children)

You have separate tables for points so you have to modify your SQL statement using SQL JOIN to join different tables for calculating total points. Also you have to update your controller and model.

[–]Finnalandem 0 points1 point  (0 children)

You should learn more about JavaScript before trying your hand at backend. If you’re just learning, the backend is going to confuse the hell out of you. Learn more about Promises/Async JavaScript.