diff --git a/pssecret/main.py b/pssecret/main.py index f0319a3..e385268 100644 --- a/pssecret/main.py +++ b/pssecret/main.py @@ -6,7 +6,7 @@ from redis.asyncio import Redis from pssecret.models import Secret, SecretSaveResult from pssecret.redis_db import get_redis -from pssecret.utils import save_secret_data +from pssecret.utils import save_secret app = FastAPI() @@ -25,7 +25,7 @@ RedisDep = Annotated[Redis, Depends(get_redis)] ) async def set_secret(data: Secret, redis: RedisDep) -> dict[str, str]: return { - "key": await save_secret_data(data, redis), + "key": await save_secret(data, redis), }