Update MediaS3GarbageCollector commmand

This commit is contained in:
Daniel Supernault 2022-12-17 21:47:39 -07:00
parent b3c4d8c47c
commit 86c5415251
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -133,7 +133,6 @@ class MediaS3GarbageCollector extends Command
$localDisk->delete($media->media_path); $localDisk->delete($media->media_path);
$media->version = 4; $media->version = 4;
$media->save(); $media->save();
$totalSize = $totalSize + $media->size;
} else { } else {
$media->version = 4; $media->version = 4;
$media->save(); $media->save();