mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
DB migration should convert only "perfect candidates" to attachments
This commit is contained in:
@@ -9,7 +9,7 @@ module.exports = () => {
|
||||
|
||||
for (const note of Object.values(becca.notes)) {
|
||||
try {
|
||||
const attachment = note.convertToParentAttachment({force: false});
|
||||
const attachment = note.convertToParentAttachment({autoConversion: true});
|
||||
|
||||
if (attachment) {
|
||||
log.info(`Auto-converted note '${note.noteId}' into attachment '${attachment.attachmentId}'.`);
|
||||
|
||||
Reference in New Issue
Block a user