0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

Upping number of compressed brews at once

This commit is contained in:
Trevor Buckner
2020-01-23 15:12:25 -05:00
committed by GitHub
parent e862f65166
commit e50f0a1f3b

View File

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