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:
@@ -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=[],
|
||||
|
||||
Reference in New Issue
Block a user