[Persistence] Provide model with error

Provide new version of domain objects correctly when revision
errors are encountered, WTD-1033.
This commit is contained in:
Victor Woeltjen 2015-03-25 12:37:02 -07:00
parent 9eeb68ddd0
commit ad3bb355dd

View File

@ -70,8 +70,8 @@ define(
if ((response || {}).status === CONFLICT) {
error.key = "revision";
// Load the updated model, then reject the promise
return get(key).then(function (model) {
error.model = model;
return get(key).then(function (response) {
error.model = response[SRC];
return $q.reject(error);
});
}