mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-10-01 18:49:42 +02:00
monograph: add sync support (#39)
* monograph: add sync support * monograph: fix password field && improve syncing logic && fix delete endpoint * sync: get rid of unnecessary .ToList & ToListAsync * sync: AddIdsToAllDevices is no longer asynchronous * monograph: simplify and fix several bugs - we were sending the triggerSync event to all users instead of all devices - asynchronous methods did not have the `Async` suffix - we weren't properly replacing the deleted monograph * monograph: fix minor issues * fix publishing * don't return deleted monograph in monographs/:id endpoint * persist UserId when soft deleting monograph * monograph: check soft delete status in several endpoints --------- Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co>
This commit is contained in:
1 parent
1e2ef0685d
commit
bf2e6efeff
4 files changed
+151
-20
No files matched your search
@@ -86,5 +86,11 @@ namespace Notesnook.API.Models
|
||||
|
||||
[JsonIgnore]
|
||||
public byte[] CompressedContent { get; set; }
|
||||
|
||||
[JsonPropertyName("password")]
|
||||
public EncryptedData Password { get; set; }
|
||||
|
||||
[JsonPropertyName("deleted")]
|
||||
public bool Deleted { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user