mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 22:29:19 +08:00
ENTITY_CHANGED event is emitted synchronously
This commit is contained in:
parent
27be3b4c90
commit
13f524fb39
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ async function addEntitySync(entityName, entityId, sourceId) {
|
|||
sourceId: sourceId || cls.getSourceId() || sourceIdService.getCurrentSourceId()
|
||||
});
|
||||
|
||||
eventService.emit(eventService.ENTITY_CHANGED, {
|
||||
await eventService.syncEmit(eventService.ENTITY_CHANGED, {
|
||||
entityName,
|
||||
entityId
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue