mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	include sync version in sync seed request, #559
This commit is contained in:
		
							parent
							
								
									19a154c2f4
								
							
						
					
					
						commit
						97a258c0c6
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user