added isSynced to sync table to allow forward compatibility with 0.41

This commit is contained in:
zadam
2020-03-09 20:56:43 +01:00
parent 719f10981e
commit 73bf2dcb02
6 changed files with 28 additions and 10 deletions

View File

@@ -546,7 +546,7 @@ class ConsistencyChecks {
${entityName}
LEFT JOIN sync ON sync.entityName = '${entityName}' AND entityId = ${key}
WHERE
sync.id IS NULL AND ` + (entityName === 'options' ? 'isSynced = 1' : '1'),
sync.id IS NULL AND ` + (entityName === 'options' ? 'options.isSynced = 1' : '1'),
async ({entityId}) => {
if (this.autoFix) {
await syncTableService.addEntitySync(entityName, entityId);