Skip to content

Commit 7d220e2

Browse files
committed
Fix: Solve metrics.json issue after pydantic migration with a non pydantic class.
1 parent 17735a6 commit 7d220e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aleph/web/controllers/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ async def metrics_json(request: web.Request) -> web.Response:
7878
return web.Response(
7979
text=(
8080
await get_metrics(session=session, node_cache=node_cache)
81-
).model_dump_json(),
81+
).to_json(),
8282
content_type="application/json",
8383
)
8484

0 commit comments

Comments
 (0)