diff --git a/pssecret_server/main.py b/pssecret_server/main.py index 6c90499..21feda8 100644 --- a/pssecret_server/main.py +++ b/pssecret_server/main.py @@ -8,7 +8,7 @@ from redis.asyncio import Redis from pssecret_server.fernet import get_fernet from pssecret_server.models import Secret, SecretSaveResult from pssecret_server.redis_db import get_redis -from pssecret_server.utils import decrypt_secret, encrypt_secret, save_secret +from pssecret_server.utils import decrypt_secret, encrypt_secret, getdel, save_secret app = FastAPI() @@ -49,7 +49,7 @@ async def set_secret( async def get_secret( secret_key: str, redis: RedisDep, fernet: FernetDep ) -> dict[str, bytes]: - data: bytes | None = await redis.getdel(secret_key) + data: bytes | None = await getdel(redis, secret_key) if data is None: raise HTTPException(404) diff --git a/pyproject.toml b/pyproject.toml index 6239ed9..2e3ce90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pssecret-server" -version = "1.1.0" +version = "1.1.1" description = "API service for secrets sharing over network" authors = ["Ivan Golikov "] license = "BSD-3-Clause"