add MiUser.lastFetchedFeaturedAt

This commit is contained in:
Hazelnoot 2025-09-17 13:27:31 -04:00
parent c647481b22
commit 94c4df602f
5 changed files with 30 additions and 2 deletions

View file

@ -129,7 +129,7 @@ export class BackgroundTaskProcessorService {
if (!isRemoteUser(user)) return `Skipping update-featured task: user ${task.userId} is local`;
if (!user.featured) return `Skipping update-featured task: user ${task.userId} has no featured collection`;
if (user.lastFetchedAt && Date.now() - user.lastFetchedAt.getTime() < 1000 * 60 * 60 * 24) {
if (user.lastFetchedFeaturedAt && Date.now() - user.lastFetchedFeaturedAt.getTime() < 1000 * 60 * 60 * 24) {
return `Skipping update-featured task: user ${task.userId} was recently updated`;
}