Skip to content

Commit 08b1eb4

Browse files
committed
Fix compiler warnings
1 parent 9464a15 commit 08b1eb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/jsonapi/plugs/query_parser.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ defmodule JSONAPI.QueryParser do
276276

277277
@spec get_valid_fields_for_type(Config.t(), String.t()) :: list(atom())
278278
def get_valid_fields_for_type(%Config{view: view}, type) do
279-
if type == view.type do
280-
view.fields
279+
if type == view.type() do
280+
view.fields()
281281
else
282282
get_view_for_type(view, type).fields
283283
end
@@ -296,7 +296,7 @@ defmodule JSONAPI.QueryParser do
296296
@spec field_valid_for_relationship?({atom(), module()}, String.t()) :: boolean()
297297
defp field_valid_for_relationship?({key, view}, expected_type) do
298298
cond do
299-
view.type == expected_type ->
299+
view.type() == expected_type ->
300300
true
301301

302302
Atom.to_string(key) == expected_type ->

0 commit comments

Comments
 (0)