There was an error while loading. Please reload this page.
1 parent c6726e9 commit 35d2d5dCopy full SHA for 35d2d5d
1 file changed
svc/util/insert.ts
@@ -364,7 +364,7 @@ export async function insertMatch(
364
// Treat the result as an Elo rating change where the opponent is the average rank tier of the match * 100
365
const win = Number(isRadiant(player) === radiant_win);
366
const kFactor = 100;
367
- const data1 = await trx.select("score").from("hero_ranking").where({
+ const data1 = await db.select("score").from("hero_ranking").where({
368
account_id: player.account_id,
369
hero_id: player.hero_id,
370
});
0 commit comments