From 97a258c0c61177f7a3578f41691d2bd9a600f5b8 Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 5 Jun 2019 22:50:03 +0200 Subject: [PATCH] include sync version in sync seed request, #559 --- src/services/setup.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/setup.js b/src/services/setup.js index d06ec46e7..b56284316 100644 --- a/src/services/setup.js +++ b/src/services/setup.js @@ -5,6 +5,7 @@ const repository = require('./repository'); const optionService = require('./options'); const syncOptions = require('./sync_options'); const request = require('./request'); +const appInfo = require('./app_info'); async function hasSyncServerSchemaAndSeed() { const response = await requestToSyncServer('GET', '/api/setup/status'); @@ -27,7 +28,8 @@ async function sendSeedToSyncServer() { log.info("Initiating sync to server"); await requestToSyncServer('POST', '/api/setup/sync-seed', { - options: await getSyncSeedOptions() + options: await getSyncSeedOptions(), + syncVersion: appInfo.syncVersion }); // this is completely new sync, need to reset counters. If this would not be new sync,