mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-19 13:03:14 +12:00
chore: use Ash.ToTenant
This commit is contained in:
parent
75ee0ab2cb
commit
e3dd3560ea
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue