Closed oreporan closed 8 years ago
I think we need to add a new field for the User schema which is something like activeGames = [] It will be useful for a user to know what future games he is attending to
activeGames = []
It should be coded in the games controller, addUserToGame() { Game.addUserToGame().then(User.addGameToUser()) }
addUserToGame() { Game.addUserToGame().then(User.addGameToUser()) }
done this - still need to test
Done with tests
I think we need to add a new field for the User schema which is something like
activeGames = []
It will be useful for a user to know what future games he is attending to