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