feat: add upload/download cancellation support

This commit is contained in:
thecodrr
2021-09-29 09:53:50 +05:00
parent 7d16b8f388
commit 6b619e5d3d
14 changed files with 121 additions and 91 deletions

View File

@@ -120,7 +120,7 @@ class Merger {
await this._mergeArrayWithConflicts(
content,
(id) => this._db.content.raw(id),
(id) => this._db.content.raw(id, false),
(item) => this._db.content.add(item),
async (local, remote) => {
let note = this._db.notes.note(local.noteId);