Skip to content

Build your personal knowledge base with Trilium Notes

include sync version in sync seed request, #559

zadam97a258c0c611
diff --git a/src/services/setup.js b/src/services/setup.js
index d06ec46e76..b562843168 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,