mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
we now remember past source ids so app restart won't change anything in sync operation
This commit is contained in:
@@ -14,9 +14,8 @@ router.post('/now', auth.checkApiAuth, async (req, res, next) => {
|
||||
|
||||
router.get('/changed', auth.checkApiAuth, async (req, res, next) => {
|
||||
const lastSyncId = parseInt(req.query.lastSyncId);
|
||||
const sourceId = req.query.sourceId;
|
||||
|
||||
res.send(await sql.getResults("SELECT * FROM sync WHERE id > ? AND source_id != ?", [lastSyncId, sourceId]));
|
||||
res.send(await sql.getResults("SELECT * FROM sync WHERE id > ?", [lastSyncId]));
|
||||
});
|
||||
|
||||
router.get('/notes/:noteId', auth.checkApiAuth, async (req, res, next) => {
|
||||
|
||||
Reference in New Issue
Block a user