Skip to content

fix data mutation issue#12

Merged
christian-bromann merged 2 commits into
masterfrom
fix-mutation-issue
Aug 15, 2019
Merged

fix data mutation issue#12
christian-bromann merged 2 commits into
masterfrom
fix-mutation-issue

Conversation

@farhan-sauce
Copy link
Copy Markdown
Contributor

Problem: Data mutation in getSummary() method, it thorws error when getSummary is being called second time.

Solution: clone syncEvents() before pass it in statsForTimeRange method.

Copy link
Copy Markdown
Contributor

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

Can we have a test for this?

@farhan-sauce
Copy link
Copy Markdown
Contributor Author

requested changes are done

Copy link
Copy Markdown
Contributor

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

👍

@christian-bromann christian-bromann merged commit 5196dbd into master Aug 15, 2019
@christian-bromann christian-bromann deleted the fix-mutation-issue branch August 15, 2019 13:25
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