diff --git a/src/Infrastructure.EntityFramework/Repositories/CipherRepository.cs b/src/Infrastructure.EntityFramework/Repositories/CipherRepository.cs index 6f81e5952..c3268aa3f 100644 --- a/src/Infrastructure.EntityFramework/Repositories/CipherRepository.cs +++ b/src/Infrastructure.EntityFramework/Repositories/CipherRepository.cs @@ -562,7 +562,8 @@ public class CipherRepository : Repository, var attachments = string.IsNullOrWhiteSpace(cipher.Attachments) ? new Dictionary() : JsonConvert.DeserializeObject>(cipher.Attachments); - attachments.Add(attachment.AttachmentId, JsonConvert.DeserializeObject(attachment.AttachmentData)); + var metaData = JsonConvert.DeserializeObject(attachment.AttachmentData); + attachments[attachment.AttachmentId] = metaData; cipher.Attachments = JsonConvert.SerializeObject(attachments); await dbContext.SaveChangesAsync();