projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b27300c
)
Increment game stat counter also for rematch live games
author
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 21 Jan 2021 18:26:29 +0000
(19:26 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 21 Jan 2021 18:26:29 +0000
(19:26 +0100)
client/src/views/Game.vue
patch
|
blob
|
blame
|
history
diff --git
a/client/src/views/Game.vue
b/client/src/views/Game.vue
index
1eef334
..
c2b2704
100644
(file)
--- 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(