debug: log raw body on /user/install to identify Evotor payload structure

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mguschin
2026-05-24 16:45:55 +03:00
parent 175f1f4c27
commit a3f6697bc4

View File

@@ -281,6 +281,8 @@ async def user_install(request: Request, db: Session = Depends(get_db)):
except Exception:
return JSONResponse({"error": "Invalid JSON"}, status_code=400)
logger.info("user/install body=%s", body)
evotor_user_id: str = body.get("userId", "")
event_type: str = body.get("type", "").lower() # "install" or "uninstall"