mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 00:35:50 +01:00
renamed attachment's parentId to more fitting ownerId
This commit is contained in:
@@ -112,7 +112,7 @@ function restoreRevision(req) {
|
||||
|
||||
for (const revisionAttachment of revision.getAttachments()) {
|
||||
const noteAttachment = revisionAttachment.copy();
|
||||
noteAttachment.parentId = note.noteId;
|
||||
noteAttachment.ownerId = note.noteId;
|
||||
noteAttachment.setContent(revisionAttachment.getContent(), { forceSave: true });
|
||||
|
||||
// content is rewritten to point to the restored revision attachments
|
||||
|
||||
Reference in New Issue
Block a user