From 342d31e99d1fbd7bcc941e34bb2a175382f3e26e Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 30 Dec 2021 16:18:57 -0600 Subject: remove build folder --- build/cleaners/skyblock/profiles.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 build/cleaners/skyblock/profiles.js (limited to 'build/cleaners/skyblock/profiles.js') 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; -} -- cgit