fix: ensure add_tenant/1 checks the correctkey (#601)

This commit is contained in:
kernel-io 2023-06-07 01:24:30 +12:00 committed by GitHub
parent 3b2b50d0e5
commit 45dc97cdb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,7 +138,7 @@ defmodule Ash.Flow do
end end
defp add_tenant(opts) do defp add_tenant(opts) do
if Keyword.has_key?(opts, :actor) do if Keyword.has_key?(opts, :tenant) do
opts opts
else else
case Process.get(:ash_tenant) do case Process.get(:ash_tenant) do