mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
wip attachment widget
This commit is contained in:
@@ -11,11 +11,13 @@ module.exports = () => {
|
||||
try {
|
||||
const attachment = note.convertToParentAttachment({force: false});
|
||||
|
||||
log.info(`Auto-converted note '${note.noteId}' into attachment '${attachment.attachmentId}'.`)
|
||||
if (attachment) {
|
||||
log.info(`Auto-converted note '${note.noteId}' into attachment '${attachment.attachmentId}'.`);
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
log.error(`Cannot convert note '${note.noteId}' to attachment: ${e.message} ${e.stack}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user