Skip to content

Commit 35d2d5d

Browse files
committed
use db instead of trx to read ranking
1 parent c6726e9 commit 35d2d5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

svc/util/insert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ export async function insertMatch(
364364
// Treat the result as an Elo rating change where the opponent is the average rank tier of the match * 100
365365
const win = Number(isRadiant(player) === radiant_win);
366366
const kFactor = 100;
367-
const data1 = await trx.select("score").from("hero_ranking").where({
367+
const data1 = await db.select("score").from("hero_ranking").where({
368368
account_id: player.account_id,
369369
hero_id: player.hero_id,
370370
});

0 commit comments

Comments
 (0)