aboutsummaryrefslogtreecommitdiff
path: root/build/cleaners/skyblock/profiles.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/cleaners/skyblock/profiles.js')
-rw-r--r--build/cleaners/skyblock/profiles.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/build/cleaners/skyblock/profiles.js b/build/cleaners/skyblock/profiles.js
deleted file mode 100644
index a85b1f3..0000000
--- a/build/cleaners/skyblock/profiles.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import { cleanSkyblockProfileResponse } from './profile.js';
-export function cleanPlayerSkyblockProfiles(rawProfiles) {
- let profiles = [];
- for (const profile of Object.values(rawProfiles ?? {})) {
- profiles.push({
- uuid: profile.profile_id,
- name: profile.cute_name
- });
- }
- return profiles;
-}
-/** Convert an array of raw profiles into clean profiles */
-export async function cleanSkyblockProfilesResponse(data) {
- const promises = [];
- for (const profile of data ?? []) {
- // let cleanedProfile = await cleanSkyblockProfileResponseLighter(profile)
- promises.push(cleanSkyblockProfileResponse(profile));
- }
- const cleanedProfiles = (await Promise.all(promises)).filter(p => p);
- return cleanedProfiles;
-}