fix sync of unsyncable options

This commit is contained in:
azivner
2018-05-22 19:29:18 -04:00
parent cd45bcfd03
commit 94dabb81f6
2 changed files with 3 additions and 10 deletions

View File

@@ -59,7 +59,9 @@ async function updateEntity(entity) {
const primaryKey = entity[entity.constructor.primaryKeyName];
await syncTableService.addEntitySync(entity.constructor.tableName, primaryKey);
if (entity.constructor.tableName !== 'options' || entity.isSynced) {
await syncTableService.addEntitySync(entity.constructor.tableName, primaryKey);
}
});
}