Micro-fixes
authorBenjamin Auder <benjamin.auder@somewhere>
Fri, 27 Sep 2019 17:16:51 +0000 (19:16 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Fri, 27 Sep 2019 17:16:51 +0000 (19:16 +0200)
server/models/Game.js
server/routes/games.js

index 6f15137..30d29c7 100644 (file)
@@ -30,7 +30,7 @@ const GameModel =
        // mainTime and increment in milliseconds
        create: function(vid, fen, mainTime, increment, players, cb)
        {
-               db.serialize({
+               db.serialize(function() {
                        let query =
                                "INSERT INTO Games (vid, fen, mainTime, addTime) " +
                                "VALUES (" + vid + ",'" + fen + "'," + mainTime + "," + increment + ")";
index c1fa976..a35f07d 100644 (file)
@@ -18,7 +18,7 @@ function tryNotify(uid, gid, vname, subject)
                          }
       );
                }
-       )};
+       });
 }
 
 // From main hall, start game between players 0 and 1