Files
2026-08-24 08:11:59 -07:00

9 lines
210 B
Python

from typing import Any
def upgrade_payload(payload: dict[str, Any]) -> dict[str, Any]:
result = dict(payload)
if "userId" in result:
result["user_id"] = result.pop("userId")
return result