0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 12:02:48 +00:00
This commit is contained in:
Trevor Buckner
2020-10-19 16:38:26 -04:00
parent 460d3fe111
commit 57c8c24b20

View File

@@ -37,8 +37,8 @@ const junkBrewQuery = HomebrewModel.find({
/* Search for brews that aren't compressed (missing the compressed text field) */
const uncompressedBrewQuery = HomebrewModel.find({
'text' : { '$exists' : true }
}).lean().limit(1000).select('_id');
'text' : { '$exists': true }
}).lean().limit(10000).select('_id');
router.get('/admin/cleanup', mw.adminOnly, (req, res)=>{
junkBrewQuery.exec((err, objs)=>{