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

Some copy/paste related fixes: #810

Merged
merged 4 commits into from
Sep 11, 2023
Merged

Some copy/paste related fixes: #810

merged 4 commits into from
Sep 11, 2023

Conversation

ikusteu
Copy link
Collaborator

@ikusteu ikusteu commented Sep 10, 2023

  • In firestore compat doc function, client variant: if doc path is not provided (we wish a new server-assigned id), pass only the parent node (to prevent empty path crashes)
  • In firestore compat batch function, bind this to returned commit methods (for both client and server variant)

Fixes #797

* In firestore compat `doc` function, client variant: if doc path is not provided (we wish a new server-assigned id), pass only the parent node (to prevent empty path crashes)
* In firestore compat `batch` function, bind `this` to returned `commit` methods (for both client and server variant)
Copy link
Collaborator

@silviot silviot left a comment

Choose a reason for hiding this comment

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

I don't fully understand the fix, but I tried it and it works. I left a comment about a minor adjustment that IMO needs to be made.

@silviot silviot merged commit 04def4b into master Sep 11, 2023
9 of 11 checks passed
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.

Copy paste problem
2 participants