From b65105598a3e7b8db7d947df4f88f688d61ceda9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Tue, 2 Jun 2026 14:34:18 +0200 Subject: [PATCH] going for 6 years for now --- client/admin/brewUtils/brewCleanup/brewCleanup.jsx | 2 +- server/admin.api.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/admin/brewUtils/brewCleanup/brewCleanup.jsx b/client/admin/brewUtils/brewCleanup/brewCleanup.jsx index 5f19fb474..e2acb2a9d 100644 --- a/client/admin/brewUtils/brewCleanup/brewCleanup.jsx +++ b/client/admin/brewUtils/brewCleanup/brewCleanup.jsx @@ -89,7 +89,7 @@ const BrewCleanup = ({})=>{ return {brew.title || 'No Title'} {Moment(brew.updatedAt).fromNow()} - {brew.lastViewed ? Moment(brew.lastViewed).fromNow() : 'No creation date'} + {brew.lastViewed ? Moment(brew.lastViewed).fromNow() : 'No last viewed date'} {brew.googleId ? 'Google' : 'Homebrewery'} ; })} diff --git a/server/admin.api.js b/server/admin.api.js index 161570dc2..451e2aa83 100644 --- a/server/admin.api.js +++ b/server/admin.api.js @@ -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 } ];