From c7aa5f6a1b583436bb671b4064e5759cf57ada21 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 23 Oct 2024 09:19:40 -0400 Subject: [PATCH] fix: ensure repo_opts is passed through to `repo.all/2` --- lib/data_layer.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/data_layer.ex b/lib/data_layer.ex index 06c05037..5c7acead 100644 --- a/lib/data_layer.ex +++ b/lib/data_layer.ex @@ -1362,7 +1362,7 @@ defmodule AshPostgres.DataLayer do %{expression_accumulator: %AshSql.Expr.ExprInfo{has_error?: true}} -> # if the query could produce an error # we must run it even if we will just be returning the original data. - repo.all(query) + repo.all(query, repo_opts) _ -> :ok @@ -1370,7 +1370,7 @@ defmodule AshPostgres.DataLayer do {:ok, [changeset.data]} else - {:ok, repo.all(query)} + {:ok, repo.all(query, repo_opts)} end else :ok