From a55a70564fac5627ae9f4bba26ce97b0d057a103 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 24 Jan 2017 00:30:45 -0500 Subject: [PATCH] set last sync on sync service --- src/services/syncService.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/services/syncService.js b/src/services/syncService.js index 85414df8f1..bec3902207 100644 --- a/src/services/syncService.js +++ b/src/services/syncService.js @@ -35,12 +35,11 @@ function initSyncService() { } syncVault(userId).then(function () { - syncSettings(userId).then(function () { + return syncSettings(userId); + }).then(function () { + self.setLastSync(new Date(), function () { self.syncCompleted(true); callback(true); - }, function () { - self.syncCompleted(false); - callback(false); }); }, function () { self.syncCompleted(false);