mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 23:02:45 +00:00
Lint
This commit is contained in:
@@ -37,8 +37,8 @@ const junkBrewQuery = HomebrewModel.find({
|
|||||||
|
|
||||||
/* Search for brews that aren't compressed (missing the compressed text field) */
|
/* Search for brews that aren't compressed (missing the compressed text field) */
|
||||||
const uncompressedBrewQuery = HomebrewModel.find({
|
const uncompressedBrewQuery = HomebrewModel.find({
|
||||||
'text' : { '$exists' : true }
|
'text' : { '$exists': true }
|
||||||
}).lean().limit(1000).select('_id');
|
}).lean().limit(10000).select('_id');
|
||||||
|
|
||||||
router.get('/admin/cleanup', mw.adminOnly, (req, res)=>{
|
router.get('/admin/cleanup', mw.adminOnly, (req, res)=>{
|
||||||
junkBrewQuery.exec((err, objs)=>{
|
junkBrewQuery.exec((err, objs)=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user