carlosvegap / capstone-kickoff

0 stars 0 forks source link

included endpoint for minValues, hasMinVlaues and prioritize #67

Closed CarLosVegga closed 2 years ago

CarLosVegga commented 2 years ago

Hi everyone!

So happy to share with you the last endpoint modification for the Adventurer.

I basically just joined the three endpoints into a single call. It was easier because I reused one of the queries I already had (so happy I am not repeating!), and what I was doing before was basically doing the same query to get the userPreference but extract a specific field. Now, it only needs to call for the information once, and I pass the three attributes and deal with that in the front.

Since the structure on the custom hook was well organize (to the best of my knowledge), I only had to call the setter for the different fields, nothing unreachable now that I am able to use .then calls more confidently (small parenthesis to thank you for every time you both were so patiently explaining me async functions and promises)

NEXT STEPS: Right now the adventurer part is fully functional to what I had delivered by the end of the MVP. Now I only need to catch up refactoring the Experience Back end. Having the knowledge I just got from refactoring Adventurer (which I think was the most complex) I hope it won't take me that long, so I can start adding some stretch features.

Happy to hear any feedback!