mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 14:33:59 -04:00
Merge branch 'master' into production
This commit is contained in:
commit
64077bd3fa
1 changed files with 1 additions and 1 deletions
|
@ -573,7 +573,7 @@ module.exports = class CampaignView extends RootView
|
|||
onRecordSync = ->
|
||||
return if @destroyed
|
||||
@userPollsRecord.url = -> '/db/user.polls.record/' + @id
|
||||
lastVoted = new Date @userPollsRecord.get('changed')
|
||||
lastVoted = new Date(@userPollsRecord.get('changed') or 0)
|
||||
interval = new Date() - lastVoted
|
||||
if interval > 22 * 60 * 60 * 1000 # Wait almost a day before showing the next poll
|
||||
@loadPoll()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue