 BaseEvent = require('../utils/events').BaseEvent
 
 contestSerializer = require '../serializers/contest'
+teamScoreSerializer = require '../serializers/team-score'
 
 
 class UpdateContestEvent extends BaseEvent

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

                                        callback null


                                        callback err
                                    else
                                        for team in teams
                                            teamScore = _.findWhere teamScores, teamId: team._id
                                            taskProgressEntries = _.where teamTaskProgress, teamId: team._id
                                            totalScore = 0
                                            lastUpdatedAt = null

