Revert "fix: don't call type() on :string"

This reverts commit 27c8bcb5bc.
This commit is contained in:
Zach Daniel 2021-06-24 18:19:45 -04:00
parent 5576605836
commit 28a4429b9e

View file

@ -36,7 +36,7 @@ defmodule Ash.Schema do
field(:__metadata__, :map, virtual: true, default: %{}, redact: true)
for aggregate <- Ash.Resource.Info.aggregates(__MODULE__) do
{:ok, type} = Aggregate.kind_to_type(aggregate.kind, Ash.Type.String)
{:ok, type} = Aggregate.kind_to_type(aggregate.kind, :string)
Ash.Schema.require_type(type)
field(aggregate.name, type, virtual: true)
@ -95,7 +95,7 @@ defmodule Ash.Schema do
field(:__metadata__, :map, virtual: true, default: %{}, redact: true)
for aggregate <- Ash.Resource.Info.aggregates(__MODULE__) do
{:ok, type} = Aggregate.kind_to_type(aggregate.kind, Ash.Type.String)
{:ok, type} = Aggregate.kind_to_type(aggregate.kind, :string)
Ash.Schema.require_type(type)
field(aggregate.name, type, virtual: true)