We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 177b925 commit 6507c00Copy full SHA for 6507c00
src/matchmaking/matchmaking-lobby.service.ts
@@ -162,23 +162,19 @@ export class MatchmakingLobbyService {
162
}>;
163
},
164
) {
165
- // Extract all steam IDs for batched query
166
- const steamIds = lobby.players.map(p => p.steam_id);
167
168
- // Single batched query to fetch all player ELO data
169
const { players } = await this.hasura.query({
170
players: {
171
__args: {
172
where: {
173
- steam_id: { _in: steamIds }
+ steam_id: { _in: lobby.players.map(p => p.steam_id) }
174
}
175
176
steam_id: true,
177
elo: true,
178
179
});
180
181
- // Create lookup map for O(1) access
182
const eloMap = new Map(
183
players.map(p => [p.steam_id, p.elo])
184
);
0 commit comments