mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
sync fixes
This commit is contained in:
@@ -139,11 +139,10 @@ function getChanged(req) {
|
||||
}
|
||||
|
||||
function update(req) {
|
||||
const sourceId = req.body.sourceId;
|
||||
const entities = req.body.entities;
|
||||
const {sourceId, entities} = req.body;
|
||||
|
||||
for (const {sync, entity} of entities) {
|
||||
syncUpdateService.updateEntity(sync, entity, sourceId);
|
||||
for (const {entityChange, entity} of entities) {
|
||||
syncUpdateService.updateEntity(entityChange, entity, sourceId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user