Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
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
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,8 @@ pytest-coverage.txt
.DS_Store

# reference docs
doc/dist
doc/dist

# IDE files
.idea
.vscode
3 changes: 1 addition & 2 deletions example/functions/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def oncallexample(req: https_fn.CallableRequest):
return "Hello from https on call function example"


@pubsub_fn.on_message_published(
topic="hello",)
@pubsub_fn.on_message_published(topic="hello",)
def onmessagepublishedexample(
event: pubsub_fn.CloudEvent[pubsub_fn.MessagePublishedData]) -> None:
print("Hello from pubsub event:", event)
4 changes: 2 additions & 2 deletions samples/basic_alerts/functions/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from firebase_functions.alerts import performance_fn


@alerts_fn.on_alert_published(alert_type=alerts_fn.AlertType.BILLING_PLAN_UPDATE
)
@alerts_fn.on_alert_published(
alert_type=alerts_fn.AlertType.BILLING_PLAN_UPDATE)
def onalertpublished(
alert: alerts_fn.AlertEvent[alerts_fn.FirebaseAlertData[
billing_fn.PlanUpdatePayload]]
Expand Down