diff --git a/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php b/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php index 0bd3e29..9c89359 100644 --- a/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php +++ b/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php @@ -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