Skip to content

Commit

Permalink
fix: fixed time response
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislarsen committed Jun 24, 2024
1 parent e829503 commit b0c6522
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Services/Backup/BackupDestinations/S3.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use App\Services\Backup\Contracts\BackupDestinationInterface;
use App\Services\Backup\Traits\BackupHelpers;
use Aws\Api\DateTimeResult;
use Aws\S3\S3Client;
use Illuminate\Support\Facades\Log;
use League\Flysystem\AwsS3V3\AwsS3V3Adapter;
Expand Down Expand Up @@ -39,7 +40,7 @@ public function listFiles(string $pattern): array
->filter(function (array $file) use ($pattern): bool {
return str_contains($file['Key'], $pattern);
})
->sortByDesc(function (array $file): string {
->sortByDesc(function (array $file): DateTimeResult {
return $file['LastModified'];
})
->toArray();
Expand Down

0 comments on commit b0c6522

Please sign in to comment.