fix: image not cleaned up when update cache
This commit is contained in:
@@ -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.');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user