Fix GameModel.cleanDb()
[vchess.git] / server / models / Game.js
index ed3fb43..516c4bc 100644 (file)
@@ -483,6 +483,7 @@ const GameModel =
               )
               ||
               (
+                !!movesGroups[g.id] &&
                 movesGroups[g.id].nbMoves == 1 &&
                 tsNow - movesGroups[g.id].lastMaj > 14*day
               )