mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
First poll should be askable.
This commit is contained in:
parent
495845a633
commit
efe1b77e9e
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
Reference in a new issue