Skip to content

Commit 9a70d85

Browse files
author
Visnu Pitiyanuvath
committed
disallow any more confirmations past midnight pdt
1 parent 7e60a5f commit 9a70d85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/models.coffee

+1
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ class Person
335335
fn()
336336

337337
confirmVotes: (fn) ->
338+
return fn() if Date.now() > Date.UTC(2010, 8, 3, 7, 0, 0)
338339
Vote.updateAll { 'person._id': @_id, confirmed: false }, { $set: { confirmed: true }}, fn
339340

340341
loadTeams: (fn) ->

0 commit comments

Comments
 (0)