change vote count min to 30

This commit is contained in:
James Clarke 2016-12-10 23:20:44 +11:00
parent 5bf93d2a08
commit a83cba0691
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ puzzles.find().forEach(function(p) {
_id: p._id
}, {
$set: {
"vote.enabled": (p.vote.up * 3 > p.vote.down) || (p.vote.up + p.vote.down < 50)
"vote.enabled": (p.vote.up * 3 > p.vote.down) || (p.vote.up + p.vote.down < 30)
}
});
modified += 1;

View file

@ -16,7 +16,7 @@ case class AggregateVote(up: Int, down: Int, enabled: Boolean) {
def sum = up - down
def computeEnabled = copy(enabled = count < 50 || up * 3 > down)
def computeEnabled = copy(enabled = count < 30 || up * 3 > down)
}
object AggregateVote {