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)); } /**