Merge commit 'e69922016248221d243e8cefa1b6fa813aa07eab' into wip-customer

* commit 'e69922016248221d243e8cefa1b6fa813aa07eab':
  revert
This commit is contained in:
Andrew Revinsky (DART)
2016-03-23 01:15:41 +03:00

View File

@@ -5,6 +5,7 @@ import net.chrisrichardson.eventstore.javaexamples.banking.common.customers.Cust
import net.chrisrichardson.eventstore.javaexamples.banking.common.customers.CustomerResponse;
import net.chrisrichardson.eventstore.javaexamples.banking.common.customers.ToAccountInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import rx.Observable;
@@ -32,7 +33,7 @@ public class CustomerController {
@RequestMapping(value = "/{id}/toaccounts", method = RequestMethod.POST)
public Observable<String> addToAccount(@PathVariable String id, @Validated @RequestBody ToAccountInfo request) {
return customerService.addToAccount(id, request)
.map(entityAndEventInfo -> "\"" + entityAndEventInfo.entityVersion().asString() + "\"");
.map(entityAndEventInfo -> entityAndEventInfo.entityVersion().asString());
}
}