diff --git a/test/support/factories/thread.ex b/test/support/factories/thread.ex index 7e883117..c6fb13b2 100644 --- a/test/support/factories/thread.ex +++ b/test/support/factories/thread.ex @@ -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