Skip to content

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

Fix typo in variable name

Maciej Korycinskid2687f5debf9
diff --git a/saleor/graphql/product/mutations/digital_contents.py b/saleor/graphql/product/mutations/digital_contents.py
index e3b2360803..c5e04aaf13 100644
--- a/saleor/graphql/product/mutations/digital_contents.py
+++ b/saleor/graphql/product/mutations/digital_contents.py
@@ -159,8 +159,8 @@ class DigitalContentUpdate(BaseMutation):
if not all(field in input for field in required_fields):
msg = ('Use default settings is disabled. Provide all '
'configuration fields')
- missing_field = set(required_fields).difference(set(input))
- for field in missing_field:
+ missing_fields = set(required_fields).difference(set(input))
+ for field in missing_fields:
cls.add_error(errors, field, msg)
return input
diff --git a/saleor/order/utils.py b/saleor/order/utils.py
index f88eaf3158..153398ef0e 100644
--- a/saleor/order/utils.py
+++ b/saleor/order/utils.py
@@ -77,6 +77,7 @@ def automatically_fulfill_digital_lines(order: Order):
fulfill_order_line(order_line=line, quantity=quantity)
emails.send_fulfillment_confirmation.delay(order.pk, fulfillment.pk)
+
def check_order_status(func):
"""Check if order meets preconditions of payment process.