From 67ade7441893205473d971c4ca835388c52aa9bc Mon Sep 17 00:00:00 2001 From: Bram Nijssen <49712778+bramnijssen@users.noreply.github.com> Date: Tue, 24 Mar 2026 14:24:08 +0100 Subject: [PATCH] fix: Pending recipient count --- src/services/SendoutsService.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/services/SendoutsService.php b/src/services/SendoutsService.php index 1fedb9d9..82440be7 100755 --- a/src/services/SendoutsService.php +++ b/src/services/SendoutsService.php @@ -122,14 +122,12 @@ public function getPendingRecipients(SendoutElement $sendout, int $limit = null) public function getPendingRecipientCount(SendoutElement $sendout): int { if ($sendout->sendoutType === 'regular' || $sendout->sendoutType === 'scheduled') { - $count = ContactElement::find() + return ContactElement::find() ->id($this->getPendingRecipientsStandardIds($sendout)) ->count(); - } else { - $count = count($this->getPendingRecipients($sendout)); } - return $count - $sendout->failures; + return count($this->getPendingRecipients($sendout)); } /**