link map WIP

This commit is contained in:
zadam
2019-06-03 22:55:59 +02:00
parent 0a0663be69
commit 87b16f3325
10 changed files with 919 additions and 28 deletions

View File

@@ -28,7 +28,7 @@ async function updateEntity(sync, entity, sourceId) {
else if (entityName === 'recent_notes') {
await updateRecentNotes(entity, sourceId);
}
else if (entityName === 'links') {
else if (entityName === 'link_map.js') {
await updateLink(entity, sourceId);
}
else if (entityName === 'attributes') {
@@ -164,7 +164,7 @@ async function updateLink(entity, sourceId) {
if (!origLink || origLink.utcDateModified <= entity.utcDateModified) {
await sql.transactional(async () => {
await sql.replace("links", entity);
await sql.replace("link_map.js", entity);
await syncTableService.addLinkSync(entity.linkId, sourceId);
});