0
0
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:
Trevor Buckner
2020-01-23 11:47:21 -05:00
committed by GitHub
parent a06b29c6f5
commit 474b2552fd

View File

@@ -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)=>{