Skip to content

Commit 6507c00

Browse files
committed
wip
1 parent 177b925 commit 6507c00

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/matchmaking/matchmaking-lobby.service.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,23 +162,19 @@ export class MatchmakingLobbyService {
162162
}>;
163163
},
164164
) {
165-
// Extract all steam IDs for batched query
166-
const steamIds = lobby.players.map(p => p.steam_id);
167165

168-
// Single batched query to fetch all player ELO data
169166
const { players } = await this.hasura.query({
170167
players: {
171168
__args: {
172169
where: {
173-
steam_id: { _in: steamIds }
170+
steam_id: { _in: lobby.players.map(p => p.steam_id) }
174171
}
175172
},
176173
steam_id: true,
177174
elo: true,
178175
},
179176
});
180177

181-
// Create lookup map for O(1) access
182178
const eloMap = new Map(
183179
players.map(p => [p.steam_id, p.elo])
184180
);

0 commit comments

Comments
 (0)