fix(backend): add missing Username field to admin seeding
This commit is contained in:
parent
a160321ca2
commit
9ad6d87590
1 changed files with 4 additions and 3 deletions
|
|
@ -182,9 +182,10 @@ func (s *Server) Start(ctx context.Context) error {
|
|||
// In that case, CreateCompany will fail on CNPJ constraint.
|
||||
|
||||
err := s.svc.RegisterAccount(ctx, company, &domain.User{
|
||||
Role: "Admin",
|
||||
Name: s.cfg.AdminName,
|
||||
Email: s.cfg.AdminEmail,
|
||||
Role: "Admin",
|
||||
Name: s.cfg.AdminName,
|
||||
Username: s.cfg.AdminUsername,
|
||||
Email: s.cfg.AdminEmail,
|
||||
}, s.cfg.AdminPassword)
|
||||
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue