stop inserting and changing deleted unlock incidents

This commit is contained in:
Bilal Catic
2020-01-09 23:23:28 +01:00
parent 280e8af748
commit 62dc399a1a
2 changed files with 10 additions and 3 deletions

View File

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