Skip to content

Commit

Permalink
Resolve #150: Fixed bug where public game summaries were failing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lattyware committed May 30, 2020
1 parent f7841f9 commit e5cfdb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/ts/store/in-memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e5cfdb1

Please sign in to comment.