mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
ENTITY_CHANGED event is emitted synchronously
This commit is contained in:
@@ -53,7 +53,7 @@ async function addEntitySync(entityName, entityId, sourceId) {
|
|||||||
sourceId: sourceId || cls.getSourceId() || sourceIdService.getCurrentSourceId()
|
sourceId: sourceId || cls.getSourceId() || sourceIdService.getCurrentSourceId()
|
||||||
});
|
});
|
||||||
|
|
||||||
eventService.emit(eventService.ENTITY_CHANGED, {
|
await eventService.syncEmit(eventService.ENTITY_CHANGED, {
|
||||||
entityName,
|
entityName,
|
||||||
entityId
|
entityId
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user