X-Git-Url: https://git.auder.net/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;ds=sidebyside;f=server%2Fbin%2Fwww;h=9fd23a448a20ca1d7e829606f283bc78db0fb4cb;hb=1b99d98121fe37c1eaca85fc58739a1d4c68e1b7;hp=b3a2c7328183d5e8183fc331211f8153ae331096;hpb=dac395887d96e2d642b209c6db6aaacc3ffacb34;p=vchess.git diff --git a/server/bin/www b/server/bin/www index b3a2c732..9fd23a44 100755 --- a/server/bin/www +++ b/server/bin/www @@ -27,12 +27,10 @@ var server = http.createServer(app); var cron = require('node-cron'); var UserModel = require("../models/User"); -var ChallengeModel = require("../models/Challenge"); var GameModel = require("../models/Game"); cron.schedule('0 0 0 * * *', function() { - // Remove some old users, challenges and games every 24h + // Remove unlogged users and unstarted games every 24h UserModel.cleanUsersDb(); - ChallengeModel.removeOld(); GameModel.cleanGamesDb(); });