Open Bouncey opened 6 years ago
My thinking is, we have a model relationship of Team -----hasOne----> Vote
Vote
will have a schema of
{
canVote: Boolean,
votesFor: [String], // most probably team._id of the teams voted for
recievedVotes: [String] // team._id's of teams that voted for this team
}
Since we had fewer than 100 online hackathon teams, we think the judges can personally review these, so we don't need to create a voting system. We can do this later for future hackathons though. Closing this for now.
Reopening just so that this not forgotten.
Condition required for access to voting
Voting rules:
Voting API:
/api/votes/count