From: Benjamin Auder Date: Fri, 3 Apr 2020 02:06:48 +0000 (+0200) Subject: Fix GameModel.cleanDb() X-Git-Url: https://git.auder.net/variants/Chakart/css/current/scripts/img/%7B%7B?a=commitdiff_plain;h=b49527c46ed89115a253f2965e198d06c9a26e9a;p=vchess.git Fix GameModel.cleanDb() --- diff --git a/server/models/Game.js b/server/models/Game.js index ed3fb436..516c4bc5 100644 --- a/server/models/Game.js +++ b/server/models/Game.js @@ -483,6 +483,7 @@ const GameModel = ) || ( + !!movesGroups[g.id] && movesGroups[g.id].nbMoves == 1 && tsNow - movesGroups[g.id].lastMaj > 14*day )