mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
unify .setContent() .getContent() handling across notes, revisions, attachments
This commit is contained in:
@@ -231,9 +231,9 @@ class ConsistencyChecks {
|
||||
|
||||
this.reloadNeeded = false;
|
||||
|
||||
logFix(`Note attachment '${attachmentId}' has been deleted since it references missing note/revision '${parentId}'`);
|
||||
logFix(`Attachment '${attachmentId}' has been deleted since it references missing note/revision '${parentId}'`);
|
||||
} else {
|
||||
logError(`Note attachment '${attachmentId}' references missing note/revision '${parentId}'`);
|
||||
logError(`Attachment '${attachmentId}' references missing note/revision '${parentId}'`);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -358,9 +358,9 @@ class ConsistencyChecks {
|
||||
|
||||
this.reloadNeeded = false;
|
||||
|
||||
logFix(`Note attachment '${attachmentId}' has been deleted since associated note '${noteId}' is deleted.`);
|
||||
logFix(`Attachment '${attachmentId}' has been deleted since associated note '${noteId}' is deleted.`);
|
||||
} else {
|
||||
logError(`Note attachment '${attachmentId}' is not deleted even though associated note '${noteId}' is deleted.`)
|
||||
logError(`Attachment '${attachmentId}' is not deleted even though associated note '${noteId}' is deleted.`)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user