better common JS compatibility

This commit is contained in:
azivner
2018-08-19 22:28:32 +02:00
parent 59d5a86110
commit 99d81059d0
2 changed files with 3 additions and 10 deletions

View File

@@ -71,15 +71,6 @@ async function runSyncRowChecks(table, key, errorList) {
sync.id IS NULL AND ` + (table === 'options' ? 'isSynced = 1' : '1'),
`Missing sync records for ${key} in table ${table}`, errorList);
console.log(`
SELECT
${key}
FROM
${table}
LEFT JOIN sync ON sync.entityName = '${table}' AND entityId = ${key}
WHERE
sync.id IS NULL AND ` + (table === 'options' ? 'isSynced = 1' : '1'));
await runCheck(`
SELECT
entityId