From c8342ee398c38e7ba0b59c42466e9b281c60ec5c Mon Sep 17 00:00:00 2001 From: grillkol Date: Mon, 27 Apr 2026 23:23:01 +0200 Subject: [PATCH] removed check for server id --- api/app/main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api/app/main.py b/api/app/main.py index bfd3f12..1795a44 100644 --- a/api/app/main.py +++ b/api/app/main.py @@ -36,12 +36,9 @@ async def ingest_event(payload: Event | BatchEvents, game: str = Depends(verify_ def check_event(e: Event): if not e.type or not e.type.strip(): raise HTTPException(400, "Event type is required") - if not e.serverId: - raise HTTPException(400, "serverId is required") if e.time <= 0: raise HTTPException(400, "Invalid timestamp") - # Optionally refuse huge data (e.g., >1KB per event) - + if isinstance(payload, BatchEvents): for event in payload.events: write_event(event, game)