Skip to content

Commit

Permalink
Ensure lastSyncTime is updated before resyncing the vault (#4375)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-livefront authored Nov 25, 2024
1 parent 8e7ec7a commit cce9bef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1352,11 +1352,11 @@ class VaultRepositoryImpl(
if (serverRevisionDate < lastSyncTimeMs) {
// We can skip the actual sync call if there is no new data or
// database scheme changes since the last sync.
vaultDiskSource.resyncVaultData(userId = userId)
settingsDiskSource.storeLastSyncTime(
userId = userId,
lastSyncTime = clock.instant(),
)
vaultDiskSource.resyncVaultData(userId = userId)
val itemsAvailable = vaultDiskSource
.getCiphers(userId)
.firstOrNull()
Expand Down

0 comments on commit cce9bef

Please sign in to comment.