fix: properly set the changed? context

This commit is contained in:
Zach Daniel 2022-06-10 10:09:49 -04:00
parent 4b57bcc8c7
commit 56656deda4

View file

@ -329,7 +329,7 @@ defmodule Ash.Actions.Update do
changeset =
changeset
|> Ash.Changeset.set_defaults(:update, true)
|> Ash.Changeset.put_context(:changed?, false)
|> Ash.Changeset.put_context(:changed?, true)
resource
|> Ash.DataLayer.update(changeset)