jeffdill2/hunger-crunch-tournament — pull request #17 by jeffdill2 (2014-07-09 22:38:09+00:00)
Title: Cloud aggregator

# Changes #

### cloud/main.js ###
- Created **gameTotals** cloud job
- Destroys all records in **GameTotals** data class.
- Pulls all data from **TntScore** data class.
- Loops through data to total coins and minions.
- Saves record to **GameTotals** data class.

- Created **groupTotals** cloud job
- Destroys all records in **GroupTotals** data class.
- Pulls all groups from **TntGroup** data class.
- Loops through groups.
- For each group, creates a Pointer object based on the respective groups *objectId* and pulls all score data that matches the Pointer from **TntScore** data class.
- Loops through score data to total coins and minions.
- Saves record for each group to **GroupTotals** data class.

---
### MyCloudCode/config/global.json ###
- Modified keys so that cloud code will now be deployed to Hunger Crunch Dev.