mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
Introduced separate sync version (previously DB version was used to check sync compatibility), closes #120
This commit is contained in:
@@ -4,10 +4,12 @@ const build = require('./build');
|
||||
const packageJson = require('../../package');
|
||||
|
||||
const APP_DB_VERSION = 99;
|
||||
const SYNC_VERSION = 1;
|
||||
|
||||
module.exports = {
|
||||
appVersion: packageJson.version,
|
||||
dbVersion: APP_DB_VERSION,
|
||||
syncVersion: SYNC_VERSION,
|
||||
buildDate: build.buildDate,
|
||||
buildRevision: build.buildRevision
|
||||
};
|
||||
@@ -69,7 +69,7 @@ async function login() {
|
||||
|
||||
const resp = await syncRequest(syncContext, 'POST', '/api/login/sync', {
|
||||
timestamp: timestamp,
|
||||
dbVersion: appInfo.dbVersion,
|
||||
syncVersion: appInfo.syncVersion,
|
||||
hash: hash
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user