Skip to content

Commit

Permalink
enable reconcile
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 20, 2024
1 parent b57dbec commit 1891fac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,8 @@ type MetricName =
| 'request_api_fail'
| 'pmh_fullhistory'
| 'pmh_gcdata'
| 'pmh_parsed';
| 'pmh_parsed'
| 'reconcile';

// Object to map player_slot to basic info
type PGroup = {
Expand Down
1 change: 1 addition & 0 deletions util/buildStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export async function buildStatus() {
pmh_fullhistory_last_day: async () => countDay('pmh_fullhistory'),
pmh_gcdata_last_day: async () => countDay('pmh_gcdata'),
pmh_parsed_last_day: async () => countDay('pmh_parsed'),
reconcile_last_day: async () => countDay('reconcile'),
meta_parsed_last_day: async () => countDay('meta_parse'),

steam_api_calls_last_day: async () => countDay('steam_api_call'),
Expand Down
5 changes: 2 additions & 3 deletions util/insert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,8 @@ export async function upsertPlayerCaches(
);
}
if (type === 'reconcile') {
// TODO remove when we actually want to start reconciling
console.log(serializedMatch);
return false;
console.log(playerMatch.account_id, copy.match_id, playerMatch.player_slot);
redisCount('reconcile');
}
const query = util.format(
'INSERT INTO player_caches (%s) VALUES (%s)',
Expand Down

0 comments on commit 1891fac

Please sign in to comment.