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,6 +69,7 @@ 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
|
||||||
|
{:ok, type} =
|
||||||
if aggregate.kind == :custom do
|
if aggregate.kind == :custom do
|
||||||
{:ok, aggregate.type}
|
{:ok, aggregate.type}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue