0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00
This commit is contained in:
Trevor Buckner
2020-01-23 12:22:42 -05:00
parent 4ac922482e
commit 347575b0ec

View File

@@ -68,7 +68,7 @@ router.get('/admin/lookup/:id', mw.adminOnly, (req, res, next)=>{
router.get('/admin/finduncompressed', mw.adminOnly, (req, res)=>{
uncompressedBrewQuery.exec((err, objs)=>{
if(err) return res.status(500).send(err);
objs = objs.map((obj)=>{return obj._id});
objs = objs.map((obj)=>{return obj._id;});
return res.json({ count: objs.length, ids: objs });
});
});