fixed sync

This commit is contained in:
azivner
2017-11-28 18:33:23 -05:00
parent 91c2f9e7cb
commit cd90200272
4 changed files with 13 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ setInterval(async () => {
const changesToPushCount = await sql.getSingleValue("SELECT COUNT(*) FROM sync WHERE id > ?", [lastSyncedPush]);
messaging.send({
messaging.sendMessage({
type: 'sync',
data: data,
changesToPushCount: sync.isSyncSetup ? changesToPushCount : 0