Skip to content

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

Remove errors/accountErrors that are defined in a parent class

Marcin Gębalaeaac0e7cac12
diff --git a/saleor/graphql/account/mutations/base.py b/saleor/graphql/account/mutations/base.py
index 1949d27d4c..c1e9a35244 100644
--- a/saleor/graphql/account/mutations/base.py
+++ b/saleor/graphql/account/mutations/base.py
@@ -45,13 +45,6 @@ def can_edit_address(user, address):
class SetPassword(CreateToken):
- user = graphene.Field(User, description="A user instance with new password.")
- account_errors = graphene.List(
- graphene.NonNull(AccountError),
- description="List of errors that occurred executing the mutation.",
- required=True,
- )
-
class Arguments:
token = graphene.String(
description="A one-time token required to set the password.", required=True
diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.py
index 7b5a1df629..7905e91cb6 100644
--- a/saleor/graphql/core/mutations.py
+++ b/saleor/graphql/core/mutations.py
@@ -18,9 +18,9 @@ from graphql_jwt.exceptions import JSONWebTokenError, PermissionDenied
from ...account import models
from ..account.types import User
-from .types.common import AccountError
from ..utils import get_nodes
from .types import Error, Upload
+from .types.common import AccountError
from .utils import from_global_id_strict_type, snake_to_camel_case
from .utils.error_codes import get_error_code_from_error
@@ -594,7 +594,7 @@ class CreateToken(ObtainJSONWebToken):
description="List of errors that occurred executing the mutation.",
required=True,
)
- user = graphene.Field(User)
+ user = graphene.Field(User, description="A user instance.")
@classmethod
def mutate(cls, root, info, **kwargs):