fix: unbound variable in schema definition

This commit is contained in:
Zach Daniel 2023-05-02 20:11:31 -04:00
parent e05b5058dc
commit 80820a01fc

View file

@ -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