From d5a243d3c863e153fd8ac6239c4b53bb61eb1750 Mon Sep 17 00:00:00 2001 From: "Rachel Fae Fox (foxiepaws)" Date: Wed, 31 Jul 2019 01:19:47 -0400 Subject: [PATCH] for #1 i wish that i better understood this code... well no way but to just keep reading it and trying to grok it i suppose. --- lib/hunter/api/http_client.ex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/hunter/api/http_client.ex b/lib/hunter/api/http_client.ex index deb26f1..3909741 100644 --- a/lib/hunter/api/http_client.ex +++ b/lib/hunter/api/http_client.ex @@ -245,7 +245,7 @@ defmodule Hunter.Api.HTTPClient do def enumerate_lists(conn) do "/api/v1/lists" |> process_url(conn) - |> request!(:instance, :get, [], conn) + |> request!(:list, :get, [], conn) end def instance_info(conn) do @@ -397,6 +397,10 @@ defmodule Hunter.Api.HTTPClient do Poison.decode!(body, as: %Hunter.Card{}) end + defp transform(body, :list) do + Poison.decode!(body) + end + defp transform(body, :context) do Poison.decode!( body,