projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b265527
)
Fix GameModel.cleanDb()
author
Benjamin Auder
<benjamin.auder@somewhere>
Fri, 3 Apr 2020 02:06:48 +0000
(
04:06
+0200)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Fri, 3 Apr 2020 02:06:48 +0000
(
04:06
+0200)
server/models/Game.js
patch
|
blob
|
blame
|
history
diff --git
a/server/models/Game.js
b/server/models/Game.js
index
ed3fb43
..
516c4bc
100644
(file)
--- 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
)