From 03991ab4890202dcfd5415da66773638245dccf1 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 30 Jun 2021 01:15:19 -0500 Subject: fix error that happens sometimes for nonexistent players --- build/cleaners/skyblock/profiles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/cleaners/skyblock/profiles.js') 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; -- cgit