diff options
author | mat <github@matdoes.dev> | 2022-04-09 13:19:20 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-04-09 13:19:20 -0500 |
commit | 3d4d9e51880aa665541e335bcd5dfa8c9bce2299 (patch) | |
tree | 97670a92bf1e41160c53458621bc65454bcbd0a8 /src/database.ts | |
parent | aca2096adb2568c4c19fff96c293aa9a625002be (diff) | |
download | skyblock-api-3d4d9e51880aa665541e335bcd5dfa8c9bce2299.tar.gz skyblock-api-3d4d9e51880aa665541e335bcd5dfa8c9bce2299.tar.bz2 skyblock-api-3d4d9e51880aa665541e335bcd5dfa8c9bce2299.zip |
return whole player in coopInvitation
Diffstat (limited to 'src/database.ts')
-rw-r--r-- | src/database.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/database.ts b/src/database.ts index f6de171..08413af 100644 --- a/src/database.ts +++ b/src/database.ts @@ -440,12 +440,7 @@ export async function fetchMemberLeaderboard(name: string): Promise<MemberLeader const leaderboardRaw = await fetchMemberLeaderboardRaw(name) const fetchLeaderboardPlayer = async (i: memberRawLeaderboardItem): Promise<MemberLeaderboardItem> => { - const player = await cached.fetchBasicPlayer(i.uuid) - - if (player) { - // we don't need this in leaderboards - delete player.claimed - } + const player = await cached.fetchBasicPlayer(i.uuid, false) return { player, |