mirror of
https://github.com/zadam/trilium.git
synced 2024-09-21 16:16:04 +08:00
fix sync
This commit is contained in:
parent
deb67d6275
commit
719f10981e
|
@ -4,6 +4,11 @@ const syncTableService = require('./sync_table');
|
||||||
const eventService = require('./events');
|
const eventService = require('./events');
|
||||||
|
|
||||||
async function updateEntity(sync, entity, sourceId) {
|
async function updateEntity(sync, entity, sourceId) {
|
||||||
|
// can be undefined for options with isSynced=false
|
||||||
|
if (!entity) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const {entityName} = sync;
|
const {entityName} = sync;
|
||||||
|
|
||||||
if (entityName === 'notes') {
|
if (entityName === 'notes') {
|
||||||
|
|
Loading…
Reference in a new issue