set last sync on sync service

This commit is contained in:
Kyle Spearrin 2017-01-24 00:30:45 -05:00
parent b0a7b88585
commit a55a70564f
1 changed files with 3 additions and 4 deletions

View File

@ -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);