fixed authentication

This commit is contained in:
Main
2016-02-17 14:56:53 +03:00
parent 84debbda28
commit 8615ac1d1e
3 changed files with 11 additions and 19 deletions

View File

@@ -25,9 +25,9 @@ public class CustomerController {
}
@RequestMapping(method = RequestMethod.POST)
public Observable<CustomerResponse> createCustomer(@Validated @RequestBody CustomerInfo request) {
return customerService.createCustomer(request)
.map(entityAndEventInfo -> new CustomerResponse(entityAndEventInfo.getEntityIdentifier().getId(), request));
public Observable<CustomerResponse> createCustomer(@Validated @RequestBody CustomerInfo customer) {
return customerService.createCustomer(customer)
.map(entityAndEventInfo -> new CustomerResponse(entityAndEventInfo.getEntityIdentifier().getId(), customer));
}
@RequestMapping(value = "/{id}/toaccounts", method = RequestMethod.POST)