Skip to content

Commit db95b88

Browse files
committed
fix 1.17 warning
1 parent 2a7627c commit db95b88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/kaffy/resource_admin.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ defmodule Kaffy.ResourceAdmin do
221221
"""
222222
def create_changeset(resource, changes) do
223223
schema = resource[:schema]
224-
schema_struct = schema.__struct__
224+
schema_struct = schema.__struct__()
225225
functions = schema.__info__(:functions)
226226

227227
default =
@@ -238,7 +238,7 @@ defmodule Kaffy.ResourceAdmin do
238238
resource,
239239
:create_changeset,
240240
default,
241-
[schema.__struct__, changes],
241+
[schema_struct, changes],
242242
false
243243
)
244244
end

0 commit comments

Comments
 (0)