From c51342429dbd0b99d313b7f6c80a3b67b8b60842 Mon Sep 17 00:00:00 2001 From: Justin Baur <19896123+justindbaur@users.noreply.github.com> Date: Sun, 23 Mar 2025 08:02:35 -0400 Subject: [PATCH] Fix UpdateCiphersAsync --- .../Vault/Repositories/CipherRepository.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Infrastructure.EntityFramework/Vault/Repositories/CipherRepository.cs b/src/Infrastructure.EntityFramework/Vault/Repositories/CipherRepository.cs index e4930cb795..c519c9b8b7 100644 --- a/src/Infrastructure.EntityFramework/Vault/Repositories/CipherRepository.cs +++ b/src/Infrastructure.EntityFramework/Vault/Repositories/CipherRepository.cs @@ -864,7 +864,10 @@ public class CipherRepository : Repository>(ciphers); - await dbContext.BulkCopyAsync(base.DefaultBulkCopyOptions, entities); + foreach (var cipher in entities) + { + dbContext.Ciphers.Attach(cipher); + } await dbContext.UserBumpAccountRevisionDateAsync(userId); await dbContext.SaveChangesAsync(); }