From 5d568352e26ca322521cb4b0870708cd1b0b3453 Mon Sep 17 00:00:00 2001 From: Nick Kezhaya Date: Mon, 9 Sep 2019 13:00:52 -0500 Subject: [PATCH] Source controller update action --- lib/stripe_mock_web/controllers/source_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stripe_mock_web/controllers/source_controller.ex b/lib/stripe_mock_web/controllers/source_controller.ex index 7bac887..0227c56 100644 --- a/lib/stripe_mock_web/controllers/source_controller.ex +++ b/lib/stripe_mock_web/controllers/source_controller.ex @@ -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