api: fix minor issues

This commit is contained in:
Abdullah Atta
2025-10-03 08:34:20 +05:00
committed by Abdullah Atta
parent 41a185bd9f
commit 908d64bd4f
4 changed files with 14 additions and 6 deletions

View File

@@ -75,7 +75,7 @@ namespace Notesnook.API.Models
public bool SelfDestruct { get; set; }
[JsonPropertyName("encryptedContent")]
public EncryptedData EncryptedContent { get; set; }
public EncryptedData? EncryptedContent { get; set; }
[JsonPropertyName("datePublished")]
public long DatePublished { get; set; }
@@ -85,10 +85,10 @@ namespace Notesnook.API.Models
public string Content { get; set; }
[JsonIgnore]
public byte[] CompressedContent { get; set; }
public byte[]? CompressedContent { get; set; }
[JsonPropertyName("password")]
public EncryptedData Password { get; set; }
public EncryptedData? Password { get; set; }
[JsonPropertyName("deleted")]
public bool Deleted { get; set; }