From b49527c46ed89115a253f2965e198d06c9a26e9a Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Fri, 3 Apr 2020 04:06:48 +0200
Subject: [PATCH] Fix GameModel.cleanDb()

---
 server/models/Game.js | 1 +
 1 file changed, 1 insertion(+)

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
               )
-- 
2.44.0