Skip to content

Commit

Permalink
fix: fix error message displaying in identity verifier
Browse files Browse the repository at this point in the history
closes #320
  • Loading branch information
zachdaniel committed Jun 10, 2024
1 parent 8e32e0a commit 49db2be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/verifiers/validate_identity_index_names.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ defmodule AshPostgres.Verifiers.ValidateIdentityIndexNames do
|> Enum.map(fn identity ->
{identity, identity_index_names[identity.name] || "#{table}_#{identity.name}_index"}
end)
|> Enum.group_by(&elem(&1, 1))
|> Enum.group_by(&elem(&1, 1), &elem(&1, 0))
|> Enum.each(fn
{name, [_, _ | _] = identities} ->
raise Spark.Error.DslError,
Expand Down

0 comments on commit 49db2be

Please sign in to comment.