From e3dd3560eab3095ada7702bbf23e25d390619a0d Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 27 Mar 2024 16:27:24 -0400 Subject: [PATCH] chore: use `Ash.ToTenant` --- lib/data_layer.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/data_layer.ex b/lib/data_layer.ex index e7d5bf5..fec2784 100644 --- a/lib/data_layer.ex +++ b/lib/data_layer.ex @@ -727,7 +727,7 @@ defmodule AshPostgres.DataLayer do defp repo_opts(_repo, timeout, tenant, resource) do if Ash.Resource.Info.multitenancy_strategy(resource) == :context do - [prefix: tenant] + [prefix: Ash.ToTenant.to_tenant(resource, tenant)] else if schema = AshPostgres.DataLayer.Info.schema(resource) do [prefix: schema]