mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-06-22 00:38:38 +00:00
last changes
This commit is contained in:
+10
-8
@@ -50,14 +50,16 @@ export default function createAdminApi(vite) {
|
||||
];
|
||||
|
||||
const lostBrewsPipeline = [
|
||||
{ $match : {
|
||||
updatedAt : { $lt: Moment().subtract(365, 'days').toDate() },
|
||||
lastViewed : { $lt: Moment().subtract(365, 'days').toDate() }
|
||||
}},
|
||||
{ $match: {
|
||||
authors : [],
|
||||
}},
|
||||
{ $limit: 300 }
|
||||
{
|
||||
$match: {
|
||||
authors: [],
|
||||
updatedAt: { $lt: Moment().subtract(9, 'years').toDate() },
|
||||
lastViewed: { $lt: Moment().subtract(9, 'years').toDate() }
|
||||
}
|
||||
},
|
||||
{
|
||||
$limit: 1000
|
||||
}
|
||||
];
|
||||
|
||||
/* Search for brews that aren't compressed (missing the compressed text field) */
|
||||
|
||||
Reference in New Issue
Block a user