0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

Try again...

This commit is contained in:
Trevor Buckner
2019-07-01 13:56:27 -04:00
committed by GitHub
parent c5867dab91
commit f28ed3d52e

View File

@@ -32,7 +32,7 @@ const junkBrewQuery = HomebrewModel.find({
createdAt : {
$lt : Moment().subtract(30, 'days').toDate()
}
});
}).limit(100).maxTime(60000);
router.get('/admin/cleanup', mw.adminOnly, (req, res)=>{
junkBrewQuery.exec((err, objs)=>{