mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
Merge pull request #7 from derpibooru/seedfix
Fix for roles not being applied to default users
This commit is contained in:
commit
35c4d9962c
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue