Skip to content

Commit 11505f8

Browse files
committed
Fix ecs
1 parent 02e5cf2 commit 11505f8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Command/AlertCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
4545
// I think that this load in the long time can be a bottleneck
4646
$subscriptions = $this->backInStockNotificationRepository->findBy(['notify' => false]);
4747
foreach ($subscriptions as $subscription) {
48-
$channel = $subscription->getChannel();
48+
$channel = $subscription->getChannel();
4949
$productVariant = $subscription->getProductVariant();
5050
if ($productVariant === null || $channel === null) {
5151
$this->backInStockNotificationRepository->remove($subscription);
@@ -68,6 +68,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6868
$this->sendEmail($subscription, $productVariant, $channel);
6969
} catch (RfcComplianceException $e) {
7070
$this->logger->warning('Invalid email address, continue to the next one: ' . $e->getMessage());
71+
7172
continue;
7273
}
7374
$subscription->setNotify(true);

0 commit comments

Comments
 (0)