diff --git a/app/Console/Commands/Maintenance/PruneOrphanedBackupsCommand.php b/app/Console/Commands/Maintenance/PruneOrphanedBackupsCommand.php index 4aef591a2..71aeb4f30 100644 --- a/app/Console/Commands/Maintenance/PruneOrphanedBackupsCommand.php +++ b/app/Console/Commands/Maintenance/PruneOrphanedBackupsCommand.php @@ -28,7 +28,7 @@ class PruneOrphanedBackupsCommand extends Command $query = $repository->getBuilder() ->whereNull('completed_at') - ->whereDate('created_at', '<=', CarbonImmutable::now()->subMinutes($since)); + ->where('created_at', '<=', CarbonImmutable::now()->subMinutes($since)->toDateTimeString()); $count = $query->count(); if (!$count) {