From 0f7011a242853b1d23a8cd279bb3c3373813198f Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Sun, 16 Feb 2020 00:29:15 +0100 Subject: [PATCH] Try to switch off cleanGamesDb --- server/bin/www | 2 +- server/models/Game.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/bin/www b/server/bin/www index 9fd23a44..2f7328ec 100755 --- a/server/bin/www +++ b/server/bin/www @@ -31,7 +31,7 @@ var GameModel = require("../models/Game"); cron.schedule('0 0 0 * * *', function() { // Remove unlogged users and unstarted games every 24h UserModel.cleanUsersDb(); - GameModel.cleanGamesDb(); + //GameModel.cleanGamesDb(); //TODO: a CRON task is causing problems on the server }); /** diff --git a/server/models/Game.js b/server/models/Game.js index 27f5d1e3..daae61c0 100644 --- a/server/models/Game.js +++ b/server/models/Game.js @@ -275,7 +275,7 @@ const GameModel = const day = 86400000; db.serialize(function() { let query = - "SELECT id,created " + + "SELECT id, created " + "FROM Games "; db.all(query, (err,games) => { games.forEach(g => { -- 2.44.0