Chore: Fixed attachFile method

pull/9186/head
Laurent Cozic 2023-11-01 14:58:21 +00:00
parent 7d87d0b394
commit 073781da92
1 changed files with 1 additions and 0 deletions

View File

@ -366,6 +366,7 @@ function shimInit(options = null) {
};
shim.attachFileToNote = async function(note, filePath, position = null, options = null) {
if (!options) options = {};
if (note.markup_language) options.markupLanguage = note.markup_language;
const newBody = await shim.attachFileToNoteBody(note.body, filePath, position, options);
if (!newBody) return null;