mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
we now remember past source ids so app restart won't change anything in sync operation
This commit is contained in:
@@ -5,7 +5,7 @@ const router = express.Router();
|
||||
const options = require('../../services/options');
|
||||
const utils = require('../../services/utils');
|
||||
const migration = require('../../services/migration');
|
||||
const SOURCE_ID = require('../../services/source_id');
|
||||
const source_id = require('../../services/source_id');
|
||||
const auth = require('../../services/auth');
|
||||
const password_encryption = require('../../services/password_encryption');
|
||||
const protected_session = require('../../services/protected_session');
|
||||
@@ -40,7 +40,7 @@ router.post('/sync', async (req, res, next) => {
|
||||
req.session.loggedIn = true;
|
||||
|
||||
res.send({
|
||||
sourceId: SOURCE_ID
|
||||
sourceId: source_id.currentSourceId
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user