better reporting of sync error when "sync now"

This commit is contained in:
azivner
2017-11-04 21:21:09 -04:00
parent b64ef6311c
commit 68c2edea45
3 changed files with 25 additions and 10 deletions

View File

@@ -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) => {