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

fix: onCreate, onUpdate and onDelete receive a DocumentQuerySnapshopt #670

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

sk-
Copy link
Contributor

@sk- sk- commented Apr 24, 2020

The arguments of Firestore triggers onCreate, onUpdate and onDelete cannot have an undefined data by definition, so we changed the arguments of those handlers to reflect that by using DocumentQuerySnapshot.

fixes #659

The arguments of Firestore triggers `onCreate`, `onUpdate` and `onDelete` cannot have an undefined data by definition, so we changed the arguments of those handlers to reflect that by using DocumentQuerySnapshot.

fixes firebase#659
Copy link
Contributor

@joehan joehan left a comment

Choose a reason for hiding this comment

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

This LGTM! Thanks for making the switch. @laurenzlong will probably review as well.

Copy link
Contributor

@laurenzlong laurenzlong 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 the contribution!

@laurenzlong laurenzlong merged commit df35c1b into firebase:master Apr 27, 2020
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.

change before and after data should not be undefined for onUpdate
3 participants