Fix after function rename

This commit is contained in:
Ivan Golikov 2025-01-01 19:12:11 +01:00
parent 672575022d
commit f6a406ba2a

View file

@ -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),
}