disable cron for now, back up to 1mo.
This commit is contained in:
@@ -37,5 +37,5 @@ module.exports.deleteStaleAccounts = ->
|
||||
|
||||
lastCron = new Date(user.lastCron)
|
||||
diff = Math.abs(moment(today).sod().diff(moment(lastCron).sod(), "days"))
|
||||
if diff > 15
|
||||
if diff > 30
|
||||
removeAccount(collection, user._id)
|
||||
@@ -11,7 +11,7 @@ priv = require './private'
|
||||
toobusy = require 'toobusy'
|
||||
|
||||
## Run server cron ##
|
||||
require('./cron').deleteStaleAccounts()
|
||||
#require('./cron').deleteStaleAccounts()
|
||||
|
||||
## RACER CONFIGURATION ##
|
||||
|
||||
|
||||
Reference in New Issue
Block a user