core: fix note not unlinked from vault on unlock

This commit is contained in:
Abdullah Atta
2024-03-14 09:54:21 +05:00
parent 4a1a912d0f
commit 90e48cbc16

View File

@@ -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,