Commit d66bfabf authored by Ahmad Sattar's avatar Ahmad Sattar

fixing mistakes

parent 0ece162b
......@@ -95,17 +95,14 @@ defmodule Seeds do
end
def create_user(email, username, password) do
{:ok, fetched_user} = case CodeStats.User.changeset(%CodeStats.User{},
{:ok, fetched_user} =
CodeStats.User.changeset(%CodeStats.User{},
%{email: email,
username: username,
password: password,
terms_version: CodeStats.LegalTerms.get_latest_version()
})
|> CodeStats.Repo.insert() do
{:ok, fetched_user} = {:ok, fetched_user}
end
|> CodeStats.Repo.insert()
{:ok, machine} =
%CodeStats.User.Machine{name: "test_machine"}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment