Skip to content

fix: Wire up firestore reference in emulated environment. #72

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

Merged
merged 3 commits into from
Apr 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix formatting.
  • Loading branch information
taeold committed Apr 28, 2023
commit 01a023c670f98cfabc711d843b762b279b0d039a
3 changes: 2 additions & 1 deletion src/firebase_functions/firestore_fn.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def _firestore_endpoint_handler(
if _DEFAULT_APP_NAME not in _apps:
initialize_app()
app = get_app()
firestore_client = _firestore_v1.Client(project=app.project_id, database=event_database)
firestore_client = _firestore_v1.Client(project=app.project_id,
database=event_database)
firestore_ref: DocumentReference = firestore_client.document(event_document)
value_snapshot: DocumentSnapshot | None = None
old_value_snapshot: DocumentSnapshot | None = None
Expand Down