Files

9 lines
210 B
Python
Raw Permalink Normal View History

2026-08-24 08:11:59 -07:00
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