Refix types
All checks were successful
Push image to registry / build-image (push) Successful in 5m50s

This commit is contained in:
2025-08-06 17:42:23 +02:00
parent 14a6975c6b
commit 11f8e1abd3

View File

@ -406,7 +406,7 @@ class InstagramRepostJob extends InstagramAbstractJob implements ShouldBeUniqueU
}
}
private function getLatestPostId(Browser $browser, InstagramRepost $reel): int
private function getLatestPostId(Browser $browser, InstagramRepost $reel): ?int
{
// Go to the profile page of the managed account
$newReel = $this->getLatestReelsFromAccount(
@ -418,7 +418,7 @@ class InstagramRepostJob extends InstagramAbstractJob implements ShouldBeUniqueU
if ($newReel === null) {
Log::error("No reels found for account: " . $this->jobInfos->get('instagram_repost_account_username'));
return;
return null;
}
// Return the reel ID