Skip to content

Commit

Permalink
Pass options to Multi.commit/2
Browse files Browse the repository at this point in the history
  • Loading branch information
rschef committed May 2, 2020
1 parent 03969b4 commit b1bf047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/paper_trail.ex
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ defmodule PaperTrail do
def update(changeset, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil]) do
Multi.new()
|> Multi.update(changeset, options)
|> Multi.commit()
|> Multi.commit(options)
end

@doc """
Expand Down Expand Up @@ -261,7 +261,7 @@ defmodule PaperTrail do
def delete(struct, options \\ [origin: nil, meta: nil, originator: nil, prefix: nil]) do
Multi.new()
|> Multi.delete(struct, options)
|> Multi.commit()
|> Multi.commit(options)
end

@doc """
Expand Down

0 comments on commit b1bf047

Please sign in to comment.