Skip to content

Commit

Permalink
fix/find-elogain (#298)
Browse files Browse the repository at this point in the history
* fix: find

* eslint
  • Loading branch information
JustDams authored Mar 22, 2023
1 parent f09748b commit 8b11bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/last.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const sendCardWithInfo = async (interaction, playerId, matchId = null, page = 0,
const to = playerHistory.at(0).date
const playerStats = generatePlayerStats(playerHistory)

const elo = Graph.getEloGain(playerHistory.length, playerDatas.nickname, playerHistory, faceitElo, false)
const elo = Graph.getEloGain(interaction, playerDatas.nickname, playerHistory.length, playerHistory, faceitElo, false)
const eloDiff = elo.filter(e => e).reduce((a, b) => a + b, 0)

const graphBuffer = Graph.generateChart(interaction,
Expand Down

0 comments on commit 8b11bf8

Please sign in to comment.