Skip to content

Commit

Permalink
fix(amaroquest): history bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrone-sudeium committed Feb 9, 2024
1 parent d49e5e3 commit 86c04ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/amaroquest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export class AmaroQuestFeature extends GlobalFeature {
return
}
for (const entry of leaderboard) {
history[entry.characterId] = history.cumulativeExp
history[entry.characterId] = entry.cumulativeExp
}
await this.setHistory(history, guildId)
const embeds = leaderboard.map(embedForLeaderboardData)
Expand Down Expand Up @@ -391,7 +391,7 @@ export class AmaroQuestFeature extends GlobalFeature {
return
}
for (const entry of leaderboard) {
history[entry.characterId] = history.cumulativeExp
history[entry.characterId] = entry.cumulativeExp
}
await this.setHistory(history, context.message.guild.id)
const embeds = leaderboard.map(embedForLeaderboardData)
Expand Down

0 comments on commit 86c04ef

Please sign in to comment.