Fix for roles not being applied to default users

This commit is contained in:
Joey 2019-12-20 00:18:40 -06:00
parent e33be9c8de
commit fd1f62b294
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ end
IO.puts "---- Generating users"
for user_def <- resources["users"] do
%User{}
%User{role: user_def["role"]}
|> User.creation_changeset(user_def)
|> Repo.insert(on_conflict: :nothing)
end

View file

@ -28,7 +28,7 @@ resources =
IO.puts "---- Generating users"
for user_def <- resources["users"] do
%User{}
%User{role: user_def["role"]}
|> User.creation_changeset(user_def)
|> Repo.insert(on_conflict: :nothing)
end