Skip to content

Commit bcac0c3

Browse files
author
Ashu Goel
committed
[suppression list] dont marshal response results, store entire response
1 parent 315e673 commit bcac0c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/suppression_list.ex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ defmodule SparkPost.SuppressionList do
2929
- description: Description of entries to include in the search.
3030
"""
3131
def search(params \\ []) do
32-
:get
33-
|> Endpoint.request("suppression-list", %{}, %{}, [params: params])
34-
|> Endpoint.marshal_response(SparkPost.SuppressionList.SearchResult)
32+
response = Endpoint.request(:get, "suppression-list", %{}, %{}, [params: params])
33+
struct(SparkPost.SuppressionList.SearchResult, response)
3534
end
3635
end

0 commit comments

Comments
 (0)