diff --git a/packages/play-node-go/play-node-go/public/favicon.ico b/packages/play-node-go/play-node-go/public/favicon.ico index a11777c..f1fc43b 100644 Binary files a/packages/play-node-go/play-node-go/public/favicon.ico and b/packages/play-node-go/play-node-go/public/favicon.ico differ diff --git a/packages/play-node-go/server/data/queries/game.js b/packages/play-node-go/server/data/queries/game.js index fc660df..ad08a07 100644 --- a/packages/play-node-go/server/data/queries/game.js +++ b/packages/play-node-go/server/data/queries/game.js @@ -6,15 +6,19 @@ const gameOverviewSelect = [ ] const findGameById = async (gameId) => { - return await knex('game') + const game = await knex('game') .where({'id': gameId}) .select('*'); + + return game; } const findGameByRoom = async (roomId) => { - return await knex('game') - .where({'id': roomId}) + const games = await knex('game') + .where({'room': roomId}) .select(gameOverviewSelect); + + return games; } const insertGame = async (game) => {