Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix account error codes
Aleksander Spyra69f73a8153c2
diff --git a/saleor/graphql/account/mutations/account.py b/saleor/graphql/account/mutations/account.pyindex cce53a8b52..111074358b 100644--- a/saleor/graphql/account/mutations/account.py+++ b/saleor/graphql/account/mutations/account.py@@ -127,7 +127,7 @@ class AccountDelete(ModelDeleteMutation):if instance.is_staff:raise ValidationError("Cannot delete a staff account.",- code=AccountErrorCode.DELETE_STUFF_ACCOUNT,+ code=AccountErrorCode.DELETE_STAFF_ACCOUNT,)@classmethoddiff --git a/saleor/graphql/core/utils/error_codes.py b/saleor/graphql/core/utils/error_codes.pyindex ff24eebe0a..73058fe8e5 100644--- a/saleor/graphql/core/utils/error_codes.py+++ b/saleor/graphql/core/utils/error_codes.py@@ -46,7 +46,6 @@ class AccountErrorCode(Enum):DELETE_NON_STAFF_USER = "delete_non_staff_user"DELETE_OWN_ACCOUNT = "delete_own_account"DELETE_STAFF_ACCOUNT = "delete_staff_account"- DELETE_STUFF_ACCOUNT = "delete_stuff_account"DELETE_SUPERUSER_ACCOUNT = "delete_superuser_account"INVALID_COUNTRY = "invalid_country"INVALID_PASSWORD = "invalid_password"diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex ca68a1077d..6808ffe09d 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -1411,7 +1411,6 @@ enum ErrorCode {DELETE_NON_STAFF_USERDELETE_OWN_ACCOUNTDELETE_STAFF_ACCOUNT- DELETE_STUFF_ACCOUNTDELETE_SUPERUSER_ACCOUNTEDIT_NON_DRAFT_ORDEREMPTY