fix double slack notification
This commit is contained in:
parent
0bc2024494
commit
fb293a6b9a
@ -110,6 +110,8 @@ class SlackNotifySubscriber implements EventSubscriberInterface
|
||||
if ($stock) {
|
||||
$prio = 0;
|
||||
foreach ($stock as $item) {
|
||||
//Nur wenn Bestand vorhanden
|
||||
if ($item->getInstock() > 0) {
|
||||
$w = $this->warehouseRepository->findOneBy(['id' => $item->getWarehouse()->getId()]);
|
||||
|
||||
if ($w->getPrio() > $prio) {
|
||||
@ -119,6 +121,7 @@ class SlackNotifySubscriber implements EventSubscriberInterface
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $warehouse;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user