From bfceb6e8acbb10a37fa2b564b22b14406566c02e Mon Sep 17 00:00:00 2001 From: Michael Hachen Date: Sat, 14 Feb 2026 14:31:25 +0000 Subject: [PATCH] Replace items deletion with archiving Updated logic to archive items instead of deleting them, making the operation less destructive and allowing for potential recovery of archived items. The purpose of this method is to archvie issues and not to delete them. --- OnePassword.NET/OnePasswordManager.Documents.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OnePassword.NET/OnePasswordManager.Documents.cs b/OnePassword.NET/OnePasswordManager.Documents.cs index 6df8ee8..e49f6c1 100644 --- a/OnePassword.NET/OnePasswordManager.Documents.cs +++ b/OnePassword.NET/OnePasswordManager.Documents.cs @@ -228,7 +228,7 @@ public void ArchiveDocument(IDocument document, IVault vault) if (vault is null || vault.Id.Length == 0) throw new ArgumentException($"{nameof(vault.Id)} cannot be empty.", nameof(vault)); - DeleteDocument(document.Id, vault.Id); + ArchiveDocument(document.Id, vault.Id); } ///