From fa35c3f4aa551fea718d802615fb892a66b67352 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Thu, 28 Dec 2023 14:58:31 +0100 Subject: [PATCH] Fix last synced on unlock --- agent/bitwarden/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/bitwarden/sync.go b/agent/bitwarden/sync.go index e306b06..69d6594 100644 --- a/agent/bitwarden/sync.go +++ b/agent/bitwarden/sync.go @@ -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...") } @@ -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 {