mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 18:47:11 +00:00
Update admin.api.js
This commit is contained in:
1 parent
d05b819ff2
commit
3a250d3da4
1 file changed
+1
-1
+1
-1
@@ -38,7 +38,7 @@ 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({
|
||||||
'textBin' : null
|
'textBin' : null
|
||||||
}).lean().limit(10000).select('_id');
|
}).lean().limit(1000).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