From 5f08f21d8c55b849775c55957164c7697e464efe Mon Sep 17 00:00:00 2001 From: mat-1 Date: Sun, 28 Feb 2021 07:44:38 +0000 Subject: Compiled TS into JS --- build/cleaners/skyblock/profiles.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build/cleaners/skyblock/profiles.js') diff --git a/build/cleaners/skyblock/profiles.js b/build/cleaners/skyblock/profiles.js index 029110a..ba84303 100644 --- a/build/cleaners/skyblock/profiles.js +++ b/build/cleaners/skyblock/profiles.js @@ -15,12 +15,12 @@ function cleanPlayerSkyblockProfiles(rawProfiles) { exports.cleanPlayerSkyblockProfiles = cleanPlayerSkyblockProfiles; /** Convert an array of raw profiles into clean profiles */ async function cleanSkyblockProfilesResponse(data) { - const cleanedProfiles = []; + const promises = []; for (const profile of data !== null && data !== void 0 ? data : []) { // let cleanedProfile = await cleanSkyblockProfileResponseLighter(profile) - let cleanedProfile = await profile_1.cleanSkyblockProfileResponse(profile); - cleanedProfiles.push(cleanedProfile); + promises.push(profile_1.cleanSkyblockProfileResponse(profile)); } + const cleanedProfiles = await Promise.all(promises); return cleanedProfiles; } exports.cleanSkyblockProfilesResponse = cleanSkyblockProfilesResponse; -- cgit