Patch
All checks were successful
Build And Push / publish (push) Successful in 1m28s

This commit is contained in:
2025-12-16 16:02:33 +03:00
parent ffcf8eb3d5
commit 19cad74587

View File

@ -1,6 +1,7 @@
from logging import getLogger
from fastapi import APIRouter
from orjson import loads
from shared.redis import client as cache
@ -18,7 +19,7 @@ router = APIRouter(
@router.post('/hospComplaint')
async def callback(complaint: s.HospComplaint):
value = await cache.get(f'complaint:{complaint.patID}')
value = value.decode() if value else ''
value = loads(value.decode()) if value else ''
return s.ComplaintData(
patId=complaint.patID,