Closed glowacki-dev closed 4 years ago
I just stumbled about the exact same issue some days ago and tracked it down to
const gameList = await db.listGames(gameName);
(in src/server/api.ts line 131)
The contract with db api requires an object with property "gameName" instead of a string. So this line should be:
const gameList = await db.listGames({gameName});
Same! Thanks putting the PR out
There seems to be a bug with listing game rooms when server supports multiple games. There is a room returned for each game type, even though request specifies a game name when fetching rooms.
Steps to reproduce:
Expected behavior: One new room for selected game is visible.
Actual behavior: New room for every game is visible.
Here's the repository with the minimal setup required to reproduce this bug: https://github.com/Bombasarkadian/boardgame.io-multiple-games-bug Run server with
node -r esm src/server.js
and client withnpm start
.EDIT: It seems like the issue is with rooms listing, not rooms creation. I'll prepare a fix soon