Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add primary_currency to user object #258

Merged
merged 3 commits into from
May 13, 2024

Conversation

SaalikLok
Copy link
Contributor

Hi @mmenanno! This client library is so wonderful to work with. Thanks for writing it!

When I was using it today, I couldn't get the User object via api.me. Looks like it's because of a change in the LunchMoney API. A primary_currency field was added to the User, and the gem didn't know how to handle it.

The error I got
image

Response from LunchMoney API
image

This PR adds primary_currency to the User object. Tested from my forked version of the repo. Let me know if this PR needs anything else!

@mmenanno
Copy link
Owner

Thanks for this! Code looks good initially, but let me figure out why the unit tests aren't running on your PR 👀

@mmenanno mmenanno force-pushed the add-primary-currency-to-user-object branch from c8fe19c to c7199e5 Compare May 13, 2024 14:36
Copy link
Owner

@mmenanno mmenanno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

@mmenanno mmenanno merged commit 3c5d899 into mmenanno:main May 13, 2024
1 check was pending
@mmenanno
Copy link
Owner

@SaalikLok I've bumped the gem version v1.3.0 should have your change

@SaalikLok
Copy link
Contributor Author

@mmenanno Thanks! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants