diff --git a/store/buildSkyBlockProfiles.js b/store/buildSkyBlockProfiles.js index 967f6bc7..d4cb55b0 100644 --- a/store/buildSkyBlockProfiles.js +++ b/store/buildSkyBlockProfiles.js @@ -92,13 +92,13 @@ async function buildProfile(uuid, id = null) { } // eslint-disable-next-line arrow-body-style - returned_Profile = await cachedFunction(`skyblock_profile:${profile_id}`, async () => { + returnedProfile = await cachedFunction(`skyblock_profile:${profile_id}`, async () => { // insertSkyBlockProfile(profile); return getProfileData(profile_id); }, { cacheDuration: 600 }); - returned_Profile["cute_name"] = profiles[profile_id].cute_name.toLowerCase() //add profile name to the end of the profile - return returned_Profile //return appended profile object + returnedProfile.cute_name = profiles[profile_id].cute_name.toLowerCase() //add profile name to the end of the profile + return returnedProfile //return appended profile object } module.exports = {