tree changes as a module

This commit is contained in:
azivner
2017-11-04 22:10:41 -04:00
parent 68c2edea45
commit 900f169dab
7 changed files with 113 additions and 98 deletions

View File

@@ -127,6 +127,11 @@ async function readAndPushEntity(sync, syncContext) {
logSyncError("Unrecognized entity type " + sync.entity_name, null);
}
if (!entity) {
logSync("Sync entity for " + sync.entity_name + " " + sync.entity_id + " doesn't exist. Skipping.");
return;
}
logSync("Pushing changes in " + sync.entity_name + " " + sync.entity_id);
await sendEntity(entity, sync.entity_name, syncContext.cookieJar);