mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
fix: fix warning on transaction hooks violating their semantics
This commit is contained in:
parent
1ad425bd84
commit
d7f2f18ae0
1 changed files with 1 additions and 3 deletions
|
@ -3285,8 +3285,6 @@ defmodule Ash.Changeset do
|
|||
end
|
||||
|
||||
def run_before_transaction_hooks(changeset) do
|
||||
warn_on_transaction_hooks(changeset, changeset.before_transaction, "before_transaction")
|
||||
|
||||
Enum.reduce_while(
|
||||
changeset.before_transaction,
|
||||
set_phase(changeset, :before_transaction),
|
||||
|
@ -3422,7 +3420,7 @@ defmodule Ash.Changeset do
|
|||
|
||||
@doc false
|
||||
def run_after_transactions(result, changeset) do
|
||||
warn_on_transaction_hooks(changeset, changeset.before_transaction, "after_transaction")
|
||||
warn_on_transaction_hooks(changeset, changeset.after_transaction, "after_transaction")
|
||||
|
||||
changeset = set_phase(changeset, :after_transaction)
|
||||
|
||||
|
|
Loading…
Reference in a new issue