mirror of
https://github.com/zadam/trilium.git
synced 2025-02-20 21:13:11 +08:00
include sync version in sync seed request, #559
This commit is contained in:
parent
19a154c2f4
commit
97a258c0c6
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue