fixes for sync

This commit is contained in:
azivner
2017-10-29 14:55:48 -04:00
parent d613200925
commit af13b28cab
7 changed files with 148 additions and 100 deletions

View File

@@ -17,7 +17,9 @@ router.post('/now', auth.checkApiAuth, async (req, res, next) => {
router.get('/changed/:since', auth.checkApiAuth, async (req, res, next) => {
const since = parseInt(req.params.since);
res.send(await sync.getChangedSince(since));
const result = await sync.getChangedSince(since);
res.send(result);
});
router.put('/changed', auth.checkApiAuth, async (req, res, next) => {