Skip to content

Commit

Permalink
Update buildSkyBlockProfiles.js
Browse files Browse the repository at this point in the history
Changed ["cute_name"] to .cute_name
Changed returned_Profile to returnedProfile
  • Loading branch information
SomeRandom-WhoLikesCode authored and ChristianDobbie committed Jan 10, 2022
1 parent a87e7bc commit b9588aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions store/buildSkyBlockProfiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit b9588aa

Please sign in to comment.