Small comment, the parameter is called body which is generic, but then the internal variable is called eventPayload which is more specific. This indicates an assumption about how this function is being used. Consider not using as specific a name. Maybe, bodyToUse?
Done! I went with httpBody to match the property assignment.
Done! I went with
httpBody
to match the property assignment.