Skip to content

Commit

Permalink
Include binary_id fields for search
Browse files Browse the repository at this point in the history
  • Loading branch information
abel-cherinet-clark committed Aug 20, 2024
1 parent 314fedb commit 3c1e21f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/kaffy/resource_schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,15 @@ defmodule Kaffy.ResourceSchema do
Enum.filter(fields(schema), fn f ->
field_name = elem(f, 0)

field_type(schema, f).type in [:string, :textarea, :richtext, :id, :integer, :decimal] &&
field_type(schema, f).type in [
:string,
:textarea,
:richtext,
:id,
:integer,
:decimal,
:binary_id
] &&
field_name in persisted_fields
end)
|> Enum.map(fn {f, options} -> {f, options.type} end)
Expand Down

0 comments on commit 3c1e21f

Please sign in to comment.