Skip to content

Commit

Permalink
Fix last synced on unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Dec 28, 2023
1 parent 186c8d7 commit fa35c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/bitwarden/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func DoFullSync(ctx context.Context, vault *vault.Vault, config *config.Config,
return err
}
} else {
vault.SetLastSynced(time.Now().Unix())
log.Info("Sync successful, initializing keyring and vault...")
}

Expand All @@ -63,6 +62,7 @@ func DoFullSync(ctx context.Context, vault *vault.Vault, config *config.Config,

log.Info("Clearing vault...")
vault.Clear()
vault.SetLastSynced(time.Now().Unix())
log.Info("Adding %d ciphers to vault...", len(sync.Ciphers))
for _, cipher := range sync.Ciphers {
switch cipher.Type {
Expand Down

0 comments on commit fa35c3f

Please sign in to comment.