diff --git a/app/Console/Commands/RecoverStuckPosts.php b/app/Console/Commands/RecoverStuckPosts.php index ed3746ee..2b4a574b 100644 --- a/app/Console/Commands/RecoverStuckPosts.php +++ b/app/Console/Commands/RecoverStuckPosts.php @@ -26,7 +26,7 @@ public function handle(): void // Mark stuck platforms as failed $post->postPlatforms() ->where('enabled', true) - ->where('status', PlatformStatus::Publishing) + ->whereIn('status', [PlatformStatus::Publishing, PlatformStatus::Pending]) ->where('updated_at', '<=', now()->subHour()) ->update([ 'status' => PlatformStatus::Failed,