mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-18 16:39:13 +00:00
refactor(tokens-repo): do not use tokens repo directly from graphql
This commit is contained in:
parent
f33d5155b0
commit
7cf295450b
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue