# FallbackController for response

**URL:** <https://forum.elixirforum.com/t/fallbackcontroller-for-response/21953>\
**Category:** Questions\
**Tags:** phoenix, troubleshooting\
**Created:** [April 26, 2019, 8:53pm UTC](https://forum.elixirforum.com/t/fallbackcontroller-for-response/21953 "2019-04-26T20:53:55Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ChipCoons](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/chipcoons/32/29503_2.png) [@ChipCoons](https://forum.elixirforum.com/u/ChipCoons)\
**Post date:** [April 26, 2019, 10:08pm UTC](https://forum.elixirforum.com/t/fallbackcontroller-for-response/21953/5 "2019-04-26T22:08:48Z")

</div>

Right now I’m only using the update\_person call…

However, I am looking at changing the parameters to the send\_to\_hubspot() function so I can just chain the results:

```elixir
  def update_person(%Person{} = person, attrs) do
    person
    |> Person.changeset(attrs)
    |> Repo.update()
    |> send_to_hubspot()

```

But I haven’t quite got that wired up yet.

---

_[View the full topic](https://forum.elixirforum.com/t/fallbackcontroller-for-response/21953)._
