Skip to content

Commit 54f1b03

Browse files
committed
add some notes
1 parent ec6c90d commit 54f1b03

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

store/getGcData.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ async function saveGcData(
9696
const players = data.match.players.map(
9797
(p: any, i: number): GcPlayer => ({
9898
// NOTE: account ids are not anonymous in this call
99-
// Also, we probably want to queue a job post-parse that reads back the match data and updates all player_caches now that we have identity and parsed data
99+
// Also, we probably want to queue a reconciliation job post-parse
100+
// to read back the match data and update all player_caches now that we have identity and parsed data
101+
// Maybe also want to do it after GC, and call it from fullhistory to update on request?
100102
account_id: p.account_id,
101103
player_slot: p.player_slot,
102104
party_id: Number(p.party_id),

svc/fullhistory.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ async function updatePlayer(player: FullHistoryJob) {
3030
}
3131

3232
async function processMatch(matchId: string) {
33-
const container = generateJob('api_details', {
34-
match_id: Number(matchId),
35-
});
3633
// Disabled due to Steam GetMatchDetails being broken
34+
// This would update the match blob with the visibility and update player caches to make them show up under a player
35+
// Could possibly queue these matches for GC data fetch and then trigger a reconciliation from our own DB (similar to proposed change after parsing a match)
36+
// const container = generateJob('api_details', {
37+
// match_id: Number(matchId),
38+
// });
3739
// const body = await getSteamAPIData({ url: container.url, noRetry: true });
3840
// const match = body.result;
3941
// await insertMatch(match, {

0 commit comments

Comments
 (0)