Resolve #150: Fixed bug where public game summaries were failing.

This commit is contained in:
Gareth Latty
2020-05-30 16:04:47 +01:00
parent f7841f9994
commit e5cfdb16cd
+1 -1
View File
@@ -59,7 +59,7 @@ export class InMemoryStore extends Store {
public async *lobbySummaries(): AsyncIterableIterator<Lobby.Summary> {
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;
}