fix: add missing total_subscription_revenue_kopeks in scoped graph early return

Prevents Pydantic ValidationError (500) when scoped_user_ids is empty
but campaign_ids is present.
This commit is contained in:
Fringg
2026-03-22 10:46:08 +03:00
parent 1eb4e18c17
commit bcc761f9d3
@@ -857,6 +857,7 @@ async def _build_scoped_graph(
total_referrers=0,
total_campaigns=len(campaign_nodes),
total_earnings_kopeks=0,
total_subscription_revenue_kopeks=0,
)
return NetworkGraphResponse(
users=[],