mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 12:42:41 +00:00
Allow cleaning function to work for a full minute
This commit is contained in:
@@ -32,7 +32,8 @@ const junkBrewQuery = HomebrewModel.find({
|
||||
createdAt : {
|
||||
$lt : Moment().subtract(30, 'days').toDate()
|
||||
}
|
||||
});
|
||||
}).maxTimeMS(60000);
|
||||
|
||||
router.get('/admin/cleanup', mw.adminOnly, (req, res)=>{
|
||||
junkBrewQuery.exec((err, objs)=>{
|
||||
if(err) return res.status(500).send(err);
|
||||
|
||||
Reference in New Issue
Block a user