fix runOnNoteContentChange event

This commit is contained in:
zadam
2023-05-05 15:40:44 +02:00
parent 78d83b8826
commit 35338e9ec6
3 changed files with 10 additions and 10 deletions

View File

@@ -229,8 +229,7 @@ function createNewNote(params) {
entity: note
});
eventService.emit(eventService.ENTITY_CREATED, { // FIXME
entityName: 'note_contents',
eventService.emit(eventService.NOTE_CONTENT_CHANGE, {
entity: note
});
@@ -571,10 +570,7 @@ function downloadImages(noteId, content) {
asyncPostProcessContent(origNote, updatedContent);
eventService.emit(eventService.ENTITY_CHANGED, {
entityName: 'note_contents', // FIXME
entity: origNote
});
eventService.emit(eventService.NOTE_CONTENT_CHANGE, { entity: origNote });
console.log(`Fixed the image links for note '${noteId}' to the offline saved.`);
}