Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #188 from moov-io/fix-customers
Browse files Browse the repository at this point in the history
fix repo name and router method
  • Loading branch information
alovak authored Sep 24, 2020
2 parents ce1f734 + 363a04a commit 7970e4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/customers/customers.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func createCustomer(logger log.Logger, repo CustomerRepository, customerSSNStora
}
}

func updateCustomer(logger log.Logger, repo customerRepository, customerSSNStorage *ssnStorage) http.HandlerFunc {
func updateCustomer(logger log.Logger, repo CustomerRepository, customerSSNStorage *ssnStorage) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
w = route.Responder(logger, w, r)
w.Header().Set("Content-Type", "application/json; charset=utf-8")
Expand Down
2 changes: 1 addition & 1 deletion pkg/customers/customers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ func TestCustomers__updateCustomer(t *testing.T) {
req := httptest.NewRequest("PUT", fmt.Sprintf("/customers/%s", customer.CustomerID), bytes.NewReader(payload))
req.Header.Set("x-namespace", "test")
req.Header.Set("x-request-id", "test")
addCustomerRoutes(log.NewNopLogger(), router, repo, testCustomerSSNStorage(t), createTestOFACSearcher(nil, nil))
AddCustomerRoutes(log.NewNopLogger(), router, repo, testCustomerSSNStorage(t), createTestOFACSearcher(nil, nil))
router.ServeHTTP(w, req)
w.Flush()

Expand Down

0 comments on commit 7970e4f

Please sign in to comment.