Skip to content

Commit 212742e

Browse files
Include binary_id fields for search
1 parent 72acdc3 commit 212742e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/kaffy/resource_schema.ex

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,15 @@ defmodule Kaffy.ResourceSchema do
299299
Enum.filter(fields(schema), fn f ->
300300
field_name = elem(f, 0)
301301

302-
field_type(schema, f).type in [:string, :textarea, :richtext, :id, :integer, :decimal] &&
302+
field_type(schema, f).type in [
303+
:string,
304+
:textarea,
305+
:richtext,
306+
:id,
307+
:integer,
308+
:decimal,
309+
:binary_id
310+
] &&
303311
field_name in persisted_fields
304312
end)
305313
|> Enum.map(fn {f, options} -> {f, options.type} end)

0 commit comments

Comments
 (0)