wait for door lock charges calculation

This commit is contained in:
Bilal Catic
2020-01-06 22:33:26 +01:00
parent 7db5c314ce
commit 3a10e56eeb

View File

@@ -44,6 +44,6 @@ router.get('/integration/report/practiceSummary/:year', getPracticeSummaryReport
// temporary route, manually trigger door lock charge calculations
router.get('/calculate', (req, res) => { calculateDoorLockCharges(); res.send();});
router.get('/calculate', (req, res) => { calculateDoorLockCharges().then(() => res.send('Done')).catch((err) => res.send('Error \r\n', err));});
module.exports = router;