From b6bfc9f8ab6b6bcab9198fdc4b111882946e5fbe Mon Sep 17 00:00:00 2001 From: Hinton Date: Fri, 13 May 2022 15:31:11 +0200 Subject: [PATCH] Use EncObject to serialize --- src/Api/Models/Request/CipherRequestModel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Api/Models/Request/CipherRequestModel.cs b/src/Api/Models/Request/CipherRequestModel.cs index 0854b5ebc3e4..7d7e0fa0b766 100644 --- a/src/Api/Models/Request/CipherRequestModel.cs +++ b/src/Api/Models/Request/CipherRequestModel.cs @@ -22,6 +22,7 @@ public class CipherRequestModel public string FolderId { get; set; } public bool Favorite { get; set; } public CipherRepromptType Reprompt { get; set; } + public EncObject Data { get; set; } [Required] [EncryptedString] [EncryptedStringLength(1000)] @@ -86,7 +87,7 @@ public Cipher ToCipher(Cipher existingCipher) existingCipher.Data = JsonSerializer.Serialize(ToCipherSecureNoteData(), JsonHelpers.IgnoreWritingNull); break; default: - //existingCipher.Data = JsonSerializer.Serialize(ToCipherCustomData(), JsonHelpers.IgnoreWritingNull); + existingCipher.Data = JsonSerializer.Serialize(Data, JsonHelpers.IgnoreWritingNull); break; }