mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 02:05:53 +01:00
set sync.isSynced correctly
This commit is contained in:
@@ -110,7 +110,9 @@ async function updateEntity(entity) {
|
||||
const primaryKey = entity[primaryKeyName];
|
||||
|
||||
if (entity.isChanged) {
|
||||
await syncTableService.addEntitySync(entityName, primaryKey);
|
||||
const isSynced = entityName !== 'options' || entity.isSynced;
|
||||
|
||||
await syncTableService.addEntitySync(entityName, primaryKey, isSynced);
|
||||
|
||||
if (!cls.isEntityEventsDisabled()) {
|
||||
const eventPayload = {
|
||||
|
||||
Reference in New Issue
Block a user