slaventius 2 years ago
parent dd16a31fa1
commit 49da806b33
  1. 2
      internal/authDB.go
  2. 2
      internal/customer/repository.go

@ -41,7 +41,7 @@ func NewServer(ctx context.Context, config *config.Config) *AuthDBServer {
repo := repo.NewCustomerRepository(ctx, arangoDB)
//
err := repo.Fetch()
err := repo.FetchAll()
if err != nil {
log.Fatal(err)
}

@ -58,7 +58,7 @@ func (r *CustomerRepository) NewCustomer(login string, password string, email st
return customer, nil
}
func (r *CustomerRepository) Fetch() error {
func (r *CustomerRepository) FetchAll() error {
params := make(map[string]interface{})
params["@coll"] = r.collection.Name()

Loading…
Cancel
Save