diff options
author | mat <github@matdoes.dev> | 2021-06-30 01:15:19 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-06-30 01:15:19 -0500 |
commit | 03991ab4890202dcfd5415da66773638245dccf1 (patch) | |
tree | 663e8fe2e9f3e4fbf3298970565261baebbe02d6 /build/cleaners/skyblock/profiles.js | |
parent | 568c74568c1397ea0db329b205e6ff6fd80eabd4 (diff) | |
download | skyblock-api-03991ab4890202dcfd5415da66773638245dccf1.tar.gz skyblock-api-03991ab4890202dcfd5415da66773638245dccf1.tar.bz2 skyblock-api-03991ab4890202dcfd5415da66773638245dccf1.zip |
fix error that happens sometimes for nonexistent players
Diffstat (limited to 'build/cleaners/skyblock/profiles.js')
-rw-r--r-- | build/cleaners/skyblock/profiles.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/cleaners/skyblock/profiles.js b/build/cleaners/skyblock/profiles.js index ba84303..b916209 100644 --- a/build/cleaners/skyblock/profiles.js +++ b/build/cleaners/skyblock/profiles.js @@ -20,7 +20,7 @@ async function cleanSkyblockProfilesResponse(data) { // let cleanedProfile = await cleanSkyblockProfileResponseLighter(profile) promises.push(profile_1.cleanSkyblockProfileResponse(profile)); } - const cleanedProfiles = await Promise.all(promises); + const cleanedProfiles = (await Promise.all(promises)).filter(p => p); return cleanedProfiles; } exports.cleanSkyblockProfilesResponse = cleanSkyblockProfilesResponse; |