Skip to content

Commit

Permalink
Source controller update action
Browse files Browse the repository at this point in the history
  • Loading branch information
nkezhaya committed Sep 9, 2019
1 parent 57bbc1f commit 5d56835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stripe_mock_web/controllers/source_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ defmodule StripeMockWeb.SourceController do
|> render("show.json", card: card)
end

def update(conn, %{"id" => id, "card" => card_params}) do
def update(conn, %{"id" => id} = card_params) do
card = API.get_card!(id)

with {:ok, source} <- API.update_card(card, card_params) do
Expand Down

0 comments on commit 5d56835

Please sign in to comment.