wip attachment widget

This commit is contained in:
zadam
2023-03-30 23:48:26 +02:00
parent 9be524ef89
commit fa406d3ded
7 changed files with 138 additions and 61 deletions

View File

@@ -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}`);
}
}
});
};
};