Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix docstring in create_delivery_for_subscription_sync_event

fowczrek38b5f84f610f
diff --git a/saleor/webhook/transport/synchronous/transport.py b/saleor/webhook/transport/synchronous/transport.py
index d1f683a53b..cf32efd6f0 100644
--- a/saleor/webhook/transport/synchronous/transport.py
+++ b/saleor/webhook/transport/synchronous/transport.py
@@ -226,10 +226,10 @@ def create_delivery_for_subscription_sync_event(
:param webhook: webhook object for which delivery will be created.
:param requestor: used in subscription webhooks to generate meta data for payload.
:param request: used to share context between sync event calls
- :return: List of event deliveries to send via webhook tasks.
:param allow_replica: use replica database.
+ :param pregenerated_payload: Pregenerated payload to use instead of generating one when creating delivery.
+ :return: List of event deliveries to send via webhook tasks.
"""
- # TODO Owczar: Adjust docstring to new solution
if event_type not in WEBHOOK_TYPES_MAP:
logger.info(
"Skipping subscription webhook. Event %s is not subscribable.", event_type