fix: image not cleaned up when update cache

This commit is contained in:
JamesFlare1212
2025-05-10 12:52:40 -04:00
parent 906f9a95ec
commit d4a16ed3d9

View File

@@ -112,7 +112,7 @@ export async function updateStaleClubs() {
// Optionally, iterate 0-MAX_ID_SCAN for any IDs not yet in Redis (newly created activities) // Optionally, iterate 0-MAX_ID_SCAN for any IDs not yet in Redis (newly created activities)
// This part can be heavy. Consider if getAllRedisActivityKeys is sufficient for "staleness". // This part can be heavy. Consider if getAllRedisActivityKeys is sufficient for "staleness".
// For truly new activities, they'd be picked up on direct API call or a less frequent full scan. // For truly new activities, they'd be picked up on direct API call or a less frequent full scan.
await cleanupOrphanedS3Images();
await Promise.all(promises); await Promise.all(promises);
logger.info('Stale club check finished.'); logger.info('Stale club check finished.');
} }