From f6a406ba2af173fc723f370ff1e5b3ded760002d Mon Sep 17 00:00:00 2001 From: Ivan Golikov Date: Wed, 1 Jan 2025 19:12:11 +0100 Subject: [PATCH] Fix after function rename --- pssecret/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), }