Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Oct 31, 2024
1 parent 0262d31 commit 1dff79d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/resource/changes/create_new_version.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ defmodule AshPaperTrail.Resource.Changes.CreateNewVersion do
change_tracking_mode = AshPaperTrail.Resource.Info.change_tracking_mode(changeset.resource)

if change_tracking_mode == :full_diff do
{:not_atomic, "Cannot perform full_diff change tracking with AshPaperTrail atomically. " <>
"You might want to choose a different tracking mode or set require_atomic? to false on your update actions."}
{:not_atomic,
"Cannot perform full_diff change tracking with AshPaperTrail atomically. " <>
"You might want to choose a different tracking mode or set require_atomic? to false on your update actions."}
else
{:ok, change(changeset, opts, context)}
end
Expand Down

0 comments on commit 1dff79d

Please sign in to comment.