fix: RecoverStuckPosts also recovers platforms stuck in Pending status

This commit is contained in:
Paulo Castellano 2026-04-01 13:12:55 -03:00
parent 5e1f9eaa82
commit d19a5c7bcf

View file

@ -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,