0
0
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:
Víctor Losada Hernández
2026-06-02 14:34:18 +02:00
parent ed6bf9f1bb
commit b65105598a
2 changed files with 4 additions and 4 deletions
@@ -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
View File
@@ -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
} }
]; ];