diff options
author | mat-1 <github@matdoes.dev> | 2021-02-28 07:44:38 +0000 |
---|---|---|
committer | mat-1 <github@matdoes.dev> | 2021-02-28 07:44:38 +0000 |
commit | 5f08f21d8c55b849775c55957164c7697e464efe (patch) | |
tree | ab011c78c21ce5e91ba207f747e418f7c07c8af4 | |
parent | 8db5f9e913a4db45b258ecc84f0eb4c1fc27828c (diff) | |
download | skyblock-api-5f08f21d8c55b849775c55957164c7697e464efe.tar.gz skyblock-api-5f08f21d8c55b849775c55957164c7697e464efe.tar.bz2 skyblock-api-5f08f21d8c55b849775c55957164c7697e464efe.zip |
Compiled TS into JS
-rw-r--r-- | build/cleaners/skyblock/profiles.js | 6 |
1 files changed, 3 insertions, 3 deletions
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; |