mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
better reporting of sync error when "sync now"
This commit is contained in:
@@ -8,11 +8,7 @@ const sql = require('../../services/sql');
|
||||
const options = require('../../services/options');
|
||||
|
||||
router.post('/now', auth.checkApiAuth, async (req, res, next) => {
|
||||
await sync.sync();
|
||||
|
||||
res.send({
|
||||
success: true
|
||||
});
|
||||
res.send(await sync.sync());
|
||||
});
|
||||
|
||||
router.get('/changed', auth.checkApiAuth, async (req, res, next) => {
|
||||
|
||||
Reference in New Issue
Block a user