From f7f934f0e865db4068fae088ccd9db86ad719249 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 29 Apr 2016 11:40:06 -0700 Subject: [PATCH] [Persistence] Remove persistence usage from AbstractStartTimerAction --- .../clock/src/actions/AbstractStartTimerAction.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/platform/features/clock/src/actions/AbstractStartTimerAction.js b/platform/features/clock/src/actions/AbstractStartTimerAction.js index 116a5e51f4..8ec204e227 100644 --- a/platform/features/clock/src/actions/AbstractStartTimerAction.js +++ b/platform/features/clock/src/actions/AbstractStartTimerAction.js @@ -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;