Skip to content

Commit 6d971e9

Browse files
committed
Add blacklisted stat to import result
1 parent 175dacb commit 6d971e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Domain/Subscription/Service/SubscriberCsvImporter.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public function importFromCsv(UploadedFile $file, SubscriberImportOptions $optio
7272
'created' => 0,
7373
'updated' => 0,
7474
'skipped' => 0,
75+
'blacklisted' => 0,
7576
'errors' => [],
7677
];
7778

@@ -182,6 +183,10 @@ private function processRow(
182183
}
183184
}
184185

186+
if ($subscriber->isBlacklisted()) {
187+
$stats['blacklisted']++;
188+
}
189+
185190
$this->handleFlushAndEmail($subscriber, $options, $dto, $addedNewSubscriberToList);
186191
}
187192

0 commit comments

Comments
 (0)