#180 [census] export - fix
This commit is contained in:
parent
495a1ec8b0
commit
e435475b89
|
@ -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}
|
||||
|
|
Reference in New Issue