diff --git a/internal/authDB.go b/internal/authDB.go index 2155d26..7d91b1d 100644 --- a/internal/authDB.go +++ b/internal/authDB.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) } diff --git a/internal/customer/repository.go b/internal/customer/repository.go index 9608089..04cf2c4 100644 --- a/internal/customer/repository.go +++ b/internal/customer/repository.go @@ -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()