From 28a4429b9e277ecb0602f3dfa1aa18929cd0b76a Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Thu, 24 Jun 2021 18:19:45 -0400 Subject: [PATCH] Revert "fix: don't call `type()` on `:string`" This reverts commit 27c8bcb5bc36e7bd70c18e5d671a03c5f01e08c7. --- lib/ash/resource/schema.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ash/resource/schema.ex b/lib/ash/resource/schema.ex index aafb5d3a..636687d6 100644 --- a/lib/ash/resource/schema.ex +++ b/lib/ash/resource/schema.ex @@ -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)