add replay check in overview

This commit is contained in:
Zutatensuppe 2020-12-22 22:54:31 +01:00
parent 083fc0463c
commit 98c05304c5
4 changed files with 32 additions and 3 deletions

View file

@ -91,6 +91,7 @@ app.use('/', async (req, res, next) => {
const games = [
...Game.getAllGames().map(game => ({
id: game.id,
hasReplay: GameLog.exists(game.id),
started: Game.getStartTs(game.id),
finished: Game.getFinishTs(game.id),
tilesFinished: Game.getFinishedTileCount(game.id),