mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
feat: remove trash from merger & backup
This commit is contained in:
@@ -90,7 +90,6 @@ class Merger {
|
|||||||
synced,
|
synced,
|
||||||
notebooks = [],
|
notebooks = [],
|
||||||
content = [],
|
content = [],
|
||||||
trash = [],
|
|
||||||
vaultKey,
|
vaultKey,
|
||||||
settings = [],
|
settings = [],
|
||||||
attachments = [],
|
attachments = [],
|
||||||
@@ -183,12 +182,6 @@ class Merger {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
await this._mergeArray(
|
|
||||||
trash,
|
|
||||||
() => undefined,
|
|
||||||
(item) => this._db.trash.add(item)
|
|
||||||
);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -125,10 +125,6 @@ export default class Backup {
|
|||||||
index: data["notebooks"],
|
index: data["notebooks"],
|
||||||
dbCollection: this._db.notebooks,
|
dbCollection: this._db.notebooks,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
index: data["trash"],
|
|
||||||
dbCollection: this._db.trash,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
index: data["content"],
|
index: data["content"],
|
||||||
dbCollection: this._db.content,
|
dbCollection: this._db.content,
|
||||||
|
|||||||
Reference in New Issue
Block a user