fix: handle additional case for new functional repo callback

This commit is contained in:
Zach Daniel 2023-11-14 12:59:42 -05:00
parent db8255e5b1
commit 2b29f728e2

View file

@ -35,7 +35,7 @@ defmodule AshPostgres.Transformers.PreventMultidimensionalArrayAggregates do
end
end)
repo = Transformer.get_option(dsl, [:postgres], :repo)
repo = AshPostgres.DataLayer.Info.repo(dsl, :mutate)
cond do
match?({:error, _}, Code.ensure_compiled(repo)) ->