mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-09 02:52:38 +00:00
Fix recent crash
This commit is contained in:
@@ -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
|
||||||
}).limit(50).distinct('_id');
|
}).limit(50);
|
||||||
|
|
||||||
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