From: Benjamin Auder <benjamin.auder@somewhere>
Date: Fri, 27 Sep 2019 17:16:51 +0000 (+0200)
Subject: Micro-fixes
X-Git-Url: https://git.auder.net/doc/html/pieces/%7B%7B%20asset%28%27mixstore/images/index.css?a=commitdiff_plain;h=88667455b8793075a0266d4477fa0f4d03257cb0;p=vchess.git

Micro-fixes
---

diff --git a/server/models/Game.js b/server/models/Game.js
index 6f151375..30d29c73 100644
--- a/server/models/Game.js
+++ b/server/models/Game.js
@@ -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 + ")";
diff --git a/server/routes/games.js b/server/routes/games.js
index c1fa9765..a35f07d4 100644
--- a/server/routes/games.js
+++ b/server/routes/games.js
@@ -18,7 +18,7 @@ function tryNotify(uid, gid, vname, subject)
 			  }
       );
 		}
-	)};
+	});
 }
 
 // From main hall, start game between players 0 and 1