diff --git a/core/scripts/webpanel/routers/api/v1/config/ip.py b/core/scripts/webpanel/routers/api/v1/config/ip.py index 04a88b7..7076c02 100644 --- a/core/scripts/webpanel/routers/api/v1/config/ip.py +++ b/core/scripts/webpanel/routers/api/v1/config/ip.py @@ -146,6 +146,7 @@ async def receive_node_traffic(body: NodesTrafficPayload): 'upload_bytes': new_upload, 'download_bytes': new_download, 'status': user_traffic.status, + 'online_count': user_traffic.online_count, } if not db_user.get('account_creation_date') and user_traffic.account_creation_date: diff --git a/core/scripts/webpanel/routers/api/v1/schema/config/ip.py b/core/scripts/webpanel/routers/api/v1/schema/config/ip.py index e54ec7f..e0f3d0f 100644 --- a/core/scripts/webpanel/routers/api/v1/schema/config/ip.py +++ b/core/scripts/webpanel/routers/api/v1/schema/config/ip.py @@ -97,6 +97,7 @@ class NodeUserTraffic(BaseModel): upload_bytes: int download_bytes: int status: str + online_count: int account_creation_date: Optional[str] = None @field_validator('account_creation_date')