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 Jun 12, 2024
1 parent 72acdc3 commit 212742e
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 212742e

Please sign in to comment.