X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;fp=client%2Fsrc%2Fviews%2FGame.vue;h=c2b27043e634103b39d107bd3465538fdb69ba35;hp=1eef3346427a2e52da6fc34433d1d727ed83e331;hb=af4a532a1e1b25f85b240afc4edb244d9dd3ef5f;hpb=b27300c2951adcc67acbf4b822267dc102895ce3 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(