From: Benjamin Auder Date: Thu, 21 Jan 2021 18:26:29 +0000 (+0100) Subject: Increment game stat counter also for rematch live games X-Git-Url: https://git.auder.net/doc/html/assets/scripts/img/current/%24%7BgetWhatsApp%28link%29%7D?a=commitdiff_plain;h=af4a532a1e1b25f85b240afc4edb244d9dd3ef5f;p=vchess.git Increment game stat counter also for rematch live games --- diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 1eef3346..c2b27043 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -1064,8 +1064,15 @@ export default { // Also to MyGames page: this.notifyMyGames("newgame", gameInfo); }; - if (this.game.type == "live") + if (this.game.type == "live") { + // Increment game stats counter in DB + ajax( + "/gamestat", + "POST", + { data: { vid: gameInfo.vid } } + ); this.addAndGotoLiveGame(gameInfo, notifyNewGame); + } else { // corr game ajax(