0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-06-22 00:38:38 +00:00

last changes

This commit is contained in:
Víctor Losada Hernández
2026-05-30 00:08:07 +02:00
parent 55c4504ed9
commit ed6bf9f1bb
3 changed files with 20 additions and 13 deletions
+10 -8
View File
@@ -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) */