Skip to content

Commit

Permalink
fix missing param
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 4, 2023
1 parent a6a5da2 commit 832a62e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions store/queries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@ function bulkIndexPlayer(bulkActions, cb) {
}
export async function insertPlayerRating(row) {
if (row.rank_tier) {
console.log('rank_tier');
await upsertPromise(
db,
'rank_tier',
Expand All @@ -603,7 +602,6 @@ export async function insertPlayerRating(row) {
);
}
if (row.leaderboard_rank) {
console.log('leaderboard_rank');
await upsertPromise(
db,
'leaderboard_rank',
Expand Down
2 changes: 1 addition & 1 deletion svc/mmr.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function processMmr(job, cb) {
account_id: job.account_id || null,
plus: Boolean(data.is_plus_subscriber),
};
await insertPlayerPromise(db, player);
await insertPlayerPromise(db, player, false);
}
if (
data.solo_competitive_rank ||
Expand Down

0 comments on commit 832a62e

Please sign in to comment.