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

Do not delete properties from option maps. #8

Merged
merged 1 commit into from
Feb 23, 2016

Conversation

sorribas
Copy link
Contributor

I got a problem while using your module.

When asking for a list of transactions, this can fail because of an access token, which means it is often needed to retry. When I do this retry, I reuse the same options map I pass to the get_transactions function, but because the account_id property is removed from this object, the second time I try the filtering by account is not done.

This clones the options map, so that the account_id is deleted from a copy and not from the original object.

@sorribas
Copy link
Contributor Author

Hey guys! Any feedback on this? We kind of need this merged :).

mfilenko added a commit that referenced this pull request Feb 23, 2016
Keep the `options` object in case of request failure.
@mfilenko mfilenko merged commit 6afafd9 into figo-connect:master Feb 23, 2016
@sorribas
Copy link
Contributor Author

Sorry to be a pain. But could you guys publish this to npm also :).

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