mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 12:03:25 -04:00
#180 [census] export - fix
This commit is contained in:
parent
84f589e485
commit
cad8401e81
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user