implementation of forcing full (re)sync

This commit is contained in:
azivner
2017-12-13 23:03:48 -05:00
parent e6686c4b32
commit b0cbe91784
8 changed files with 56 additions and 38 deletions

View File

@@ -3,7 +3,7 @@ const source_id = require('./source_id');
const utils = require('./utils');
const messaging = require('./messaging');
const options = require('./options');
const sync = require('./sync');
const sync_setup = require('./sync_setup');
let startTime = utils.nowDate();
let sentSyncId = [];
@@ -35,7 +35,7 @@ async function sendPing() {
messaging.sendMessage({
type: 'sync',
data: data,
changesToPushCount: sync.isSyncSetup ? changesToPushCount : 0
changesToPushCount: sync_setup.isSyncSetup ? changesToPushCount : 0
});
for (const syncId of syncIds) {