mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-05 12:22:44 +00:00
Update admin.api.js
This commit is contained in:
@@ -37,7 +37,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
|
'text' : { '$exists' : true }
|
||||||
}).lean().limit(1000).select('_id');
|
}).lean().limit(1000).select('_id');
|
||||||
|
|
||||||
router.get('/admin/cleanup', mw.adminOnly, (req, res)=>{
|
router.get('/admin/cleanup', mw.adminOnly, (req, res)=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user