aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-27 17:59:42 -0500
committermat <github@matdoes.dev>2022-03-27 17:59:42 -0500
commit8ed789ba8d12641d9d7c2639b5ea8f5d5d14e36b (patch)
tree24135101e38f72fb32e31014b9c6e2dd40ec797a /src
parent8e17029d648d9f7aa285f8a35581cf28444caaa6 (diff)
downloadskyblock-api-8ed789ba8d12641d9d7c2639b5ea8f5d5d14e36b.tar.gz
skyblock-api-8ed789ba8d12641d9d7c2639b5ea8f5d5d14e36b.tar.bz2
skyblock-api-8ed789ba8d12641d9d7c2639b5ea8f5d5d14e36b.zip
Fix harp leaderboards
Diffstat (limited to 'src')
-rw-r--r--src/database.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database.ts b/src/database.ts
index 887facb..51ab5d7 100644
--- a/src/database.ts
+++ b/src/database.ts
@@ -176,8 +176,8 @@ function getMemberHarpAttributes(member: CleanMember): StringNumber {
const harpAttributes: StringNumber = {}
for (const song of member.harp.songs) {
- harpAttributes[`harp_${song.completions}_completions`] = song.completions
- harpAttributes[`harp_${song.perfectCompletions}_perfect_completions`] = song.perfectCompletions
+ harpAttributes[`harp_${song.id}_completions`] = song.completions
+ harpAttributes[`harp_${song.id}_perfect_completions`] = song.perfectCompletions
}
return harpAttributes