mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
sync cleanup
This commit is contained in:
@@ -19,9 +19,7 @@ router.get('/changed', auth.checkApiAuth, async (req, res, next) => {
|
||||
const lastSyncId = parseInt(req.query.lastSyncId);
|
||||
const sourceId = req.query.sourceId;
|
||||
|
||||
const result = await sync.getChanged(lastSyncId, sourceId);
|
||||
|
||||
res.send(result);
|
||||
res.send(await sql.getResults("SELECT * FROM sync WHERE id > ? AND source_id != ?", [lastSyncId, sourceId]));
|
||||
});
|
||||
|
||||
router.get('/notes/:noteId', auth.checkApiAuth, async (req, res, next) => {
|
||||
|
Reference in New Issue
Block a user