mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 09:39:23 +00:00
put cron back to timeout 1s, revisit later
This commit is contained in:
parent
2bece89b37
commit
96d0681063
1 changed files with 1 additions and 1 deletions
|
|
@ -286,7 +286,7 @@ ready (model) ->
|
|||
|
||||
# FIXME seems can't call scoring.cron() instantly, have to call after some time (2s here)
|
||||
# Doesn't do anything otherwise. Don't know why... model not initialized enough yet?
|
||||
setTimeout scoring.cron, 1 # Run once on refresh
|
||||
setTimeout scoring.cron, 1000 # Run once on refresh
|
||||
setInterval scoring.cron, 3600000 # Then run once every hour
|
||||
|
||||
require('../server/private').app(exports, model)
|
||||
|
|
|
|||
Loading…
Reference in a new issue