                                         callback err
                                     else
                                         for team in teams
-                                            logger.info "Team #{team.id}"
                                             teamScore = _.findWhere teamScores, teamId: team._id
                                             taskProgressEntries = _.where teamTaskProgress, teamId: team._id
-                                            logger.info "Found #{taskProgressEntries.length} entries!"
                                             totalScore = 0
                                             lastUpdatedAt = null
 

                                                    if err?
                                                        logger.error err
                                                    else
                                                        logger.info "Recalculated score for #{teamScore.teamId}"
                                                        # TODO: trigger event

                                        callback null


BaseEvent = require('../utils/events').BaseEvent

contestSerializer = require '../serializers/contest'
teamScoreSerializer = require '../serializers/team-score'


class UpdateContestEvent extends BaseEvent
