@@ -143,7 +143,8 @@ def _firestore_endpoint_handler(
143
143
app = get_app ()
144
144
firestore_client = _firestore_v1 .Client (project = app .project_id ,
145
145
database = event_database )
146
- firestore_ref : DocumentReference = firestore_client .document (event_document )
146
+ firestore_ref : DocumentReference = firestore_client .document (
147
+ event_document )
147
148
value_snapshot : DocumentSnapshot | None = None
148
149
old_value_snapshot : DocumentSnapshot | None = None
149
150
@@ -169,7 +170,7 @@ def _firestore_endpoint_handler(
169
170
firestore_event_data .old_value .create_time ,
170
171
firestore_event_data .old_value .update_time ,
171
172
)
172
- print ( f"Event type: { event_type } " )
173
+
173
174
if event_type in (_event_type_deleted ,
174
175
_event_type_deleted_with_auth_context ):
175
176
firestore_event_data = _typing .cast (_firestore .DocumentEventData ,
@@ -272,7 +273,7 @@ def on_document_written_wrapped(raw: _ce.CloudEvent):
272
273
273
274
@_util .copy_func_kwargs (FirestoreOptions )
274
275
def on_document_written_with_auth_context (** kwargs
275
- ) -> _typing .Callable [[_C1 ], _C1 ]:
276
+ ) -> _typing .Callable [[_C1 ], _C1 ]:
276
277
"""
277
278
Event handler that triggers when a document is created, updated, or deleted in Firestore.
278
279
This trigger will also provide the authentication context of the principal who triggered
@@ -371,7 +372,7 @@ def on_document_updated_wrapped(raw: _ce.CloudEvent):
371
372
372
373
@_util .copy_func_kwargs (FirestoreOptions )
373
374
def on_document_updated_with_auth_context (** kwargs
374
- ) -> _typing .Callable [[_C1 ], _C1 ]:
375
+ ) -> _typing .Callable [[_C1 ], _C1 ]:
375
376
"""
376
377
Event handler that triggers when a document is updated in Firestore.
377
378
This trigger will also provide the authentication context of the principal who triggered
@@ -470,7 +471,7 @@ def on_document_created_wrapped(raw: _ce.CloudEvent):
470
471
471
472
@_util .copy_func_kwargs (FirestoreOptions )
472
473
def on_document_created_with_auth_context (** kwargs
473
- ) -> _typing .Callable [[_C2 ], _C2 ]:
474
+ ) -> _typing .Callable [[_C2 ], _C2 ]:
474
475
"""
475
476
Event handler that triggers when a document is created in Firestore.
476
477
This trigger will also provide the authentication context of the principal who triggered
@@ -569,7 +570,7 @@ def on_document_deleted_wrapped(raw: _ce.CloudEvent):
569
570
570
571
@_util .copy_func_kwargs (FirestoreOptions )
571
572
def on_document_deleted_with_auth_context (** kwargs
572
- ) -> _typing .Callable [[_C2 ], _C2 ]:
573
+ ) -> _typing .Callable [[_C2 ], _C2 ]:
573
574
"""
574
575
Event handler that triggers when a document is deleted in Firestore.
575
576
This trigger will also provide the authentication context of the principal who triggered
0 commit comments