refactor(tokens-repo): do not use tokens repo directly from graphql

This commit is contained in:
Houkime 2022-12-26 14:13:46 +00:00
parent f33d5155b0
commit 7cf295450b

View file

@ -24,17 +24,6 @@ from selfprivacy_api.graphql.mutations.mutation_interface import (
) )
from selfprivacy_api.repositories.tokens.json_tokens_repository import (
JsonTokensRepository,
)
from selfprivacy_api.repositories.tokens.exceptions import (
RecoveryKeyNotFound,
InvalidMnemonic,
)
TOKEN_REPO = JsonTokensRepository()
@strawberry.type @strawberry.type
class ApiKeyMutationReturn(MutationReturnInterface): class ApiKeyMutationReturn(MutationReturnInterface):
key: typing.Optional[str] key: typing.Optional[str]