From 88667455b8793075a0266d4477fa0f4d03257cb0 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Fri, 27 Sep 2019 19:16:51 +0200
Subject: [PATCH] Micro-fixes

---
 server/models/Game.js  | 2 +-
 server/routes/games.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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
-- 
2.44.0