Skip to content

Updates firebaseApp check in makeDocumentSnapshot #80

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rharter
Copy link

@rharter rharter commented Nov 24, 2020

Fixes #79

Pretty self-explainatory, the optional property check is checking for a property called app (like from RDB), but the firestore property is called firestoreApp.

The existing work-around when you want to create a snapshot in your own app is to add both properties and cast:

makeDocumentSnapshot(data, `/path/to/data`, {firebaseApp: app, app: app} as DocumentSnapshotOptions)

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.

makeDocumentSnapshot check wrong option names.
1 participant