start pgn with empty string
This commit is contained in:
@@ -48,7 +48,8 @@ export const createGame = async (req: Request, res: Response) => {
|
|||||||
const game: Game = {
|
const game: Game = {
|
||||||
code: nanoid(6),
|
code: nanoid(6),
|
||||||
unlisted,
|
unlisted,
|
||||||
host: user
|
host: user,
|
||||||
|
pgn: ""
|
||||||
};
|
};
|
||||||
if (req.body.side === "white") {
|
if (req.body.side === "white") {
|
||||||
game.white = user;
|
game.white = user;
|
||||||
|
|||||||
Reference in New Issue
Block a user