[Persistence] Remove persistence usage from AbstractStartTimerAction

This commit is contained in:
Victor Woeltjen
2016-04-29 11:40:06 -07:00
parent 0e683acde1
commit f7f934f0e8

View File

@ -51,17 +51,11 @@ define(
var domainObject = this.domainObject,
now = this.now;
function doPersist() {
var persistence = domainObject.getCapability('persistence');
return persistence && persistence.persist();
}
function setTimestamp(model) {
model.timestamp = now();
}
return domainObject.useCapability('mutation', setTimestamp)
.then(doPersist);
return domainObject.useCapability('mutation', setTimestamp);
};
return AbstractStartTimerAction;