From 8ec476ba9637119a57b3550a54960c8e6534da33 Mon Sep 17 00:00:00 2001 From: zadam Date: Thu, 19 Nov 2020 13:30:39 +0100 Subject: [PATCH] fix ENEX import note saving --- src/services/import/enex.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/services/import/enex.js b/src/services/import/enex.js index 498fa3043..f1520b0a1 100644 --- a/src/services/import/enex.js +++ b/src/services/import/enex.js @@ -310,7 +310,13 @@ function importEnex(taskContext, file, parentNote) { updateDates(noteEntity.noteId, utcDateCreated, utcDateModified); } - saxStream.on("closetag", tag => path.pop()); + saxStream.on("closetag", tag => { + path.pop(); + + if (tag === 'note') { + saveNote(); + } + }); saxStream.on("opencdata", () => { //console.log("opencdata");