diff --git a/Iceshrimp.Backend/Core/Services/StorageMaintenanceService.cs b/Iceshrimp.Backend/Core/Services/StorageMaintenanceService.cs index 22105214..b705dd63 100644 --- a/Iceshrimp.Backend/Core/Services/StorageMaintenanceService.cs +++ b/Iceshrimp.Backend/Core/Services/StorageMaintenanceService.cs @@ -30,6 +30,7 @@ public class StorageMaintenanceService( { var keys = await db.DriveFiles .Where(p => p.StoredInternal && !p.IsLink) + .Where(p => !failed.Contains(p.Id)) .GroupBy(p => p.AccessKey) .Select(p => p.Key) .OrderBy(p => p)