Skip to content

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

Add missing database connection (#16965)

Filip Owczarekbb4333d041f8
diff --git a/saleor/graphql/webhook/resolvers.py b/saleor/graphql/webhook/resolvers.py
index 12d7096fcd..6af3a8bd05 100644
--- a/saleor/graphql/webhook/resolvers.py
+++ b/saleor/graphql/webhook/resolvers.py
@@ -67,7 +67,9 @@ def resolve_shipping_methods_for_checkout(
manager,
database_connection_name: str = settings.DATABASE_CONNECTION_DEFAULT_NAME,
):
- lines, _ = fetch_checkout_lines(checkout)
+ lines, _ = fetch_checkout_lines(
+ checkout, database_connection_name=database_connection_name
+ )
shipping_channel_listings = checkout.channel.shipping_method_listings.all()
checkout_info = fetch_checkout_info(
checkout,