mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-06-22 04:58:40 +00:00
going for 6 years for now
This commit is contained in:
@@ -89,7 +89,7 @@ const BrewCleanup = ({})=>{
|
|||||||
return <tr key={idx}>
|
return <tr key={idx}>
|
||||||
<td><strong>{brew.title || 'No Title'}</strong></td>
|
<td><strong>{brew.title || 'No Title'}</strong></td>
|
||||||
<td style={{ width: '200px' }}>{Moment(brew.updatedAt).fromNow()}</td>
|
<td style={{ width: '200px' }}>{Moment(brew.updatedAt).fromNow()}</td>
|
||||||
<td>{brew.lastViewed ? Moment(brew.lastViewed).fromNow() : 'No creation date'}</td>
|
<td>{brew.lastViewed ? Moment(brew.lastViewed).fromNow() : 'No last viewed date'}</td>
|
||||||
<td>{brew.googleId ? 'Google' : 'Homebrewery'}</td>
|
<td>{brew.googleId ? 'Google' : 'Homebrewery'}</td>
|
||||||
</tr>;
|
</tr>;
|
||||||
})}
|
})}
|
||||||
|
|||||||
+3
-3
@@ -53,12 +53,12 @@ export default function createAdminApi(vite) {
|
|||||||
{
|
{
|
||||||
$match: {
|
$match: {
|
||||||
authors: [],
|
authors: [],
|
||||||
updatedAt: { $lt: Moment().subtract(9, 'years').toDate() },
|
updatedAt: { $lt: Moment().subtract(6, 'years').toDate() },
|
||||||
lastViewed: { $lt: Moment().subtract(9, 'years').toDate() }
|
lastViewed: { $lt: Moment().subtract(6, 'years').toDate() }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
$limit: 1000
|
$limit: 500
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user