0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +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) */
const uncompressedBrewQuery = HomebrewModel.find({
'textBin' : null
}).limit(50).distinct('_id');
}).limit(50);
router.get('/admin/cleanup', mw.adminOnly, (req, res)=>{
junkBrewQuery.exec((err, objs)=>{