Skip to content

Commit

Permalink
Use EncObject to serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed May 13, 2022
1 parent 84b4445 commit b6bfc9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Api/Models/Request/CipherRequestModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit b6bfc9f

Please sign in to comment.