From 2b29f728e2c69ac915b085af803be6aa2be2ea2e Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Tue, 14 Nov 2023 12:59:42 -0500 Subject: [PATCH] fix: handle additional case for new functional repo callback --- lib/transformers/prevent_multidimensional_array_aggregates.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transformers/prevent_multidimensional_array_aggregates.ex b/lib/transformers/prevent_multidimensional_array_aggregates.ex index a52ea723..396d633d 100644 --- a/lib/transformers/prevent_multidimensional_array_aggregates.ex +++ b/lib/transformers/prevent_multidimensional_array_aggregates.ex @@ -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)) ->