fix(s3): updating clean all files in s3
This commit is contained in:
@@ -299,9 +299,7 @@ export async function cleanupOrphanedS3Images(): Promise<void> {
|
|||||||
|
|
||||||
if (activityData &&
|
if (activityData &&
|
||||||
typeof activityData.photo === 'string' &&
|
typeof activityData.photo === 'string' &&
|
||||||
activityData.photo.startsWith('http') &&
|
activityData.photo.startsWith('http')) {
|
||||||
S3_ENDPOINT &&
|
|
||||||
activityData.photo.startsWith(S3_ENDPOINT)) {
|
|
||||||
referencedS3Urls.add(activityData.photo);
|
referencedS3Urls.add(activityData.photo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user