mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: unbound variable in schema definition
This commit is contained in:
parent
e05b5058dc
commit
80820a01fc
1 changed files with 6 additions and 5 deletions
|
@ -69,11 +69,12 @@ defmodule Ash.Schema do
|
||||||
|
|
||||||
for aggregate <- Ash.Resource.Info.aggregates(__MODULE__),
|
for aggregate <- Ash.Resource.Info.aggregates(__MODULE__),
|
||||||
aggregate.name not in Ash.Resource.reserved_names() do
|
aggregate.name not in Ash.Resource.reserved_names() do
|
||||||
if aggregate.kind == :custom do
|
{:ok, type} =
|
||||||
{:ok, aggregate.type}
|
if aggregate.kind == :custom do
|
||||||
else
|
{:ok, aggregate.type}
|
||||||
Aggregate.kind_to_type(aggregate.kind, :string)
|
else
|
||||||
end
|
Aggregate.kind_to_type(aggregate.kind, :string)
|
||||||
|
end
|
||||||
|
|
||||||
field(aggregate.name, Ash.Type.ecto_type(type), virtual: true)
|
field(aggregate.name, Ash.Type.ecto_type(type), virtual: true)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue