diff --git a/lib/jsonapi/plugs/query_parser.ex b/lib/jsonapi/plugs/query_parser.ex index a3b8135f..465fc548 100644 --- a/lib/jsonapi/plugs/query_parser.ex +++ b/lib/jsonapi/plugs/query_parser.ex @@ -279,7 +279,7 @@ defmodule JSONAPI.QueryParser do if type == view.type() do view.fields() else - get_view_for_type(view, type).fields + get_view_for_type(view, type).fields() end end