From d19a5c7bcf246c9132e4da77b66b31ed901111d1 Mon Sep 17 00:00:00 2001 From: Paulo Castellano Date: Wed, 1 Apr 2026 13:12:55 -0300 Subject: [PATCH] fix: RecoverStuckPosts also recovers platforms stuck in Pending status --- app/Console/Commands/RecoverStuckPosts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,