set last sync on sync service
This commit is contained in:
parent
b0a7b88585
commit
a55a70564f
|
@ -35,12 +35,11 @@ function initSyncService() {
|
||||||
}
|
}
|
||||||
|
|
||||||
syncVault(userId).then(function () {
|
syncVault(userId).then(function () {
|
||||||
syncSettings(userId).then(function () {
|
return syncSettings(userId);
|
||||||
|
}).then(function () {
|
||||||
|
self.setLastSync(new Date(), function () {
|
||||||
self.syncCompleted(true);
|
self.syncCompleted(true);
|
||||||
callback(true);
|
callback(true);
|
||||||
}, function () {
|
|
||||||
self.syncCompleted(false);
|
|
||||||
callback(false);
|
|
||||||
});
|
});
|
||||||
}, function () {
|
}, function () {
|
||||||
self.syncCompleted(false);
|
self.syncCompleted(false);
|
||||||
|
|
Loading…
Reference in New Issue