diff --git a/server/src/ts/store/in-memory.ts b/server/src/ts/store/in-memory.ts index c7abcb2a..90af7719 100644 --- a/server/src/ts/store/in-memory.ts +++ b/server/src/ts/store/in-memory.ts @@ -59,7 +59,7 @@ export class InMemoryStore extends Store { public async *lobbySummaries(): AsyncIterableIterator { const publicSummaries = wu(this.lobbies.entries()) .filter(([_, { lobby }]) => lobby.config.public) - .spreadMap(Lobby.summary); + .map(([gameCode, { lobby }]) => Lobby.summary(gameCode, lobby)); for (const summary of publicSummaries) { yield summary; }