fix: ensure create functions generated by code_interface accept tenant in the opts list (#243)

This commit is contained in:
kernel-io 2021-06-01 10:34:54 +12:00 committed by GitHub
parent 59095bbf2f
commit 42895c50f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,7 +173,7 @@ defmodule Ash.Api.Interface do
Keyword.take(opts, [:actor, :tenant])
)
unquote(api).create(changeset, opts)
unquote(api).create(changeset, Keyword.drop(opts, [:query, :tenant]))
end
end