fix: RecoverStuckPosts also recovers platforms stuck in Pending status
This commit is contained in:
parent
5e1f9eaa82
commit
d19a5c7bcf
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue