From fd66897ecda1349d9c478752892fb16a811a893d Mon Sep 17 00:00:00 2001 From: Nathaniel Tampus Date: Mon, 6 Mar 2023 14:35:18 +0800 Subject: [PATCH] start pgn with empty string --- server/src/controllers/games.controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/controllers/games.controller.ts b/server/src/controllers/games.controller.ts index 7ba6f02..fcec918 100644 --- a/server/src/controllers/games.controller.ts +++ b/server/src/controllers/games.controller.ts @@ -48,7 +48,8 @@ export const createGame = async (req: Request, res: Response) => { const game: Game = { code: nanoid(6), unlisted, - host: user + host: user, + pgn: "" }; if (req.body.side === "white") { game.white = user;