fix(proxy/utils.py): add linting fix

This commit is contained in:
Krrish Dholakia 2024-03-02 21:11:25 -08:00
parent ff2e002a92
commit db0489d603

View file

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