change vote count min to 30
This commit is contained in:
parent
5bf93d2a08
commit
a83cba0691
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue