mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
core: fix note not unlinked from vault on unlock
This commit is contained in:
@@ -355,6 +355,9 @@ export default class Vault {
|
||||
}
|
||||
|
||||
if (perm) {
|
||||
await this.db.relations
|
||||
.to({ id: noteId, type: "note" }, "vault")
|
||||
.unlink();
|
||||
await this.db.notes.add({
|
||||
id: noteId,
|
||||
contentId: content.id,
|
||||
|
||||
Reference in New Issue
Block a user