#180 [census] export - fix

This commit is contained in:
Avris 2021-02-02 17:25:46 +01:00
parent 495a1ec8b0
commit e435475b89
1 changed files with 0 additions and 4 deletions

View File

@ -68,10 +68,6 @@ router.post('/census/submit', async (req, res) => {
});
router.get('/census/count', async (req, res) => {
if (!req.isGranted('census')) {
res.status(401).json({error: 'Unauthorised'});
}
return res.json((await req.db.get(SQL`
SELECT COUNT(*) as c FROM census
WHERE locale = ${req.config.locale}