Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix reveiw remarks
fowczreke15ce39f164e
diff --git a/saleor/graphql/webhook/dataloaders.py b/saleor/graphql/webhook/dataloaders.pyindex b842eb3447..4aaed91fd3 100644--- a/saleor/graphql/webhook/dataloaders.py+++ b/saleor/graphql/webhook/dataloaders.py@@ -109,10 +109,10 @@ class PregeneratedCheckoutTaxPayloadsByCheckoutTokenLoader(DataLoader):@allow_writer_in_context(self.context)def generate_payloads(data):- checkouts_info, checkout_liens_info, apps = data+ checkouts_info, checkout_lines_info, apps = dataapps_map = {app.id: app for app in apps}promises = []- for checkout_info, lines_info in zip(checkouts_info, checkout_liens_info):+ for checkout_info, lines_info in zip(checkouts_info, checkout_lines_info):tax_configuration, country_tax_configuration = (get_tax_configuration_for_checkout(checkout_info, lines_info, self.database_connection_namediff --git a/saleor/graphql/webhook/subscription_payload.py b/saleor/graphql/webhook/subscription_payload.pyindex e7eb87e6c3..aa863970e0 100644--- a/saleor/graphql/webhook/subscription_payload.py+++ b/saleor/graphql/webhook/subscription_payload.py@@ -81,7 +81,7 @@ def generate_payload_promise_from_subscription(subscribable_object: is an object which have a dedicated own type in Subscriptiondefinition.subscription_query: query used to prepare a payload via graphql engine.- context: A dummy request used to share context between apps in order to use+ request: A dummy request used to share context between apps in order to usedataloaders benefits.app: the owner of the given payload. Required in case when webhook containsprotected fields.@@ -165,7 +165,7 @@ def generate_payload_from_subscription(subscribable_object: is an object which have a dedicated own type in Subscriptiondefinition.subscription_query: query used to prepare a payload via graphql engine.- context: A dummy request used to share context between apps in order to use+ request: A dummy request used to share context between apps in order to usedataloaders benefits.app: the owner of the given payload. Required in case when webhook containsprotected fields.