more changes to import reporting through WS

This commit is contained in:
zadam
2019-02-10 16:59:50 +01:00
parent cde68abec9
commit 5baa251944
4 changed files with 51 additions and 25 deletions

View File

@@ -342,7 +342,7 @@ async function importTar(fileBuffer, importRootNote) {
if (Date.now() - lastSentCountTs >= 1000) {
lastSentCountTs = Date.now();
messagingService.sendMessageToAllClients({ type: 'importNoteCount', count: importNoteCount });
messagingService.importNoteCount(importNoteCount);
}
next(); // ready for next entry
@@ -379,6 +379,8 @@ async function importTar(fileBuffer, importRootNote) {
}
}
messagingService.importFinished(firstNote);
resolve(firstNote);
});