fix(proxy/utils.py): fix pydantic model dump logic

This commit is contained in:
Krrish Dholakia 2024-03-02 21:10:37 -08:00
parent a4b4489832
commit ff2e002a92

View file

@ -1142,10 +1142,7 @@ class PrismaClient:
)
_data: dict = {}
if response is not None:
try:
_data = response.model_dump()
except Exception as e:
_data = response.dict()
_data = response.dict()
return {"token": token, "data": _data}
elif (
user_id is not None