Skip to content

Commit 3f1215d

Browse files
committed
Fix id used instead of puuid to update rank
1 parent e548249 commit 3f1215d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

util/lol_rank_manager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ class LolRankManager {
187187
data["RANKED_FLEX_SR"]["leaguePoints"] !== rank["RANKED_FLEX_SR"]["leaguePoints"]
188188
)
189189
) {
190-
await this.client.pg.query("UPDATE summoners SET rank_solo = $1, tier_solo = $2, LP_solo = $3, rank_flex = $4, tier_flex = $5, LP_flex = $6 WHERE id = $7", [
190+
await this.client.pg.query("UPDATE summoners SET rank_solo = $1, tier_solo = $2, LP_solo = $3, rank_flex = $4, tier_flex = $5, LP_flex = $6 WHERE puuid = $7", [
191191
rank["RANKED_SOLO_5x5"]["rank"],
192192
rank["RANKED_SOLO_5x5"]["tier"],
193193
rank["RANKED_SOLO_5x5"]["leaguePoints"],
194194
rank["RANKED_FLEX_SR"]["rank"],
195195
rank["RANKED_FLEX_SR"]["tier"],
196196
rank["RANKED_FLEX_SR"]["leaguePoints"],
197-
data.id,
197+
puuid,
198198
]);
199199
const embeds = this.build_trackers(data, rank, last_game);
200200

0 commit comments

Comments
 (0)