Skip to content

Commit

Permalink
fix(tests/thread): fix thread create factory
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsey committed Oct 21, 2023
1 parent 603ddfd commit c7227f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/support/factories/thread.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule Test.Support.Factories.Thread do
def thread_factory(%{user: user} = attrs) do
attributes = build(:thread_attributes, attrs)

Thread.create(attributes, user.id)
Thread.create(attributes, user)
|> case do
{:ok, thread} -> thread |> Map.put(:attributes, attributes)
end
Expand Down

0 comments on commit c7227f6

Please sign in to comment.