Skip to content

Commit 3fe71df

Browse files
committed
fix: remove print statement
1 parent a274f47 commit 3fe71df

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/firebase_functions/firestore_fn.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ def _firestore_endpoint_handler(
143143
app = get_app()
144144
firestore_client = _firestore_v1.Client(project=app.project_id,
145145
database=event_database)
146-
firestore_ref: DocumentReference = firestore_client.document(event_document)
146+
firestore_ref: DocumentReference = firestore_client.document(
147+
event_document)
147148
value_snapshot: DocumentSnapshot | None = None
148149
old_value_snapshot: DocumentSnapshot | None = None
149150

@@ -169,7 +170,7 @@ def _firestore_endpoint_handler(
169170
firestore_event_data.old_value.create_time,
170171
firestore_event_data.old_value.update_time,
171172
)
172-
print(f"Event type: {event_type}")
173+
173174
if event_type in (_event_type_deleted,
174175
_event_type_deleted_with_auth_context):
175176
firestore_event_data = _typing.cast(_firestore.DocumentEventData,
@@ -272,7 +273,7 @@ def on_document_written_wrapped(raw: _ce.CloudEvent):
272273

273274
@_util.copy_func_kwargs(FirestoreOptions)
274275
def on_document_written_with_auth_context(**kwargs
275-
) -> _typing.Callable[[_C1], _C1]:
276+
) -> _typing.Callable[[_C1], _C1]:
276277
"""
277278
Event handler that triggers when a document is created, updated, or deleted in Firestore.
278279
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):
371372

372373
@_util.copy_func_kwargs(FirestoreOptions)
373374
def on_document_updated_with_auth_context(**kwargs
374-
) -> _typing.Callable[[_C1], _C1]:
375+
) -> _typing.Callable[[_C1], _C1]:
375376
"""
376377
Event handler that triggers when a document is updated in Firestore.
377378
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):
470471

471472
@_util.copy_func_kwargs(FirestoreOptions)
472473
def on_document_created_with_auth_context(**kwargs
473-
) -> _typing.Callable[[_C2], _C2]:
474+
) -> _typing.Callable[[_C2], _C2]:
474475
"""
475476
Event handler that triggers when a document is created in Firestore.
476477
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):
569570

570571
@_util.copy_func_kwargs(FirestoreOptions)
571572
def on_document_deleted_with_auth_context(**kwargs
572-
) -> _typing.Callable[[_C2], _C2]:
573+
) -> _typing.Callable[[_C2], _C2]:
573574
"""
574575
Event handler that triggers when a document is deleted in Firestore.
575576
This trigger will also provide the authentication context of the principal who triggered

0 commit comments

Comments
 (0)