Skip to content

Commit

Permalink
use admin.id to verify person in lib/auth/init/init.ex instead of 1 #174
Browse files Browse the repository at this point in the history


Co-authored-by: Simon <[email protected]>
  • Loading branch information
nelsonic and SimonLab authored Jan 31, 2022
1 parent de46c24 commit 134f1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auth/init/init.ex
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ defmodule Auth.Init do
end

# Update status of Admin to "verified"
Auth.Person.verify_person_by_id(1)
Auth.Person.verify_person_by_id(admin.id)

# grant superadmin role to app owner:
Auth.PeopleRoles.upsert(1, 1, 1, 1)
Expand Down

0 comments on commit 134f1a3

Please sign in to comment.