Skip to content

Commit ddd2a96

Browse files
committed
Clearer message on no inventory to report
1 parent bf8ff51 commit ddd2a96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/Console/Commands/SendInventoryAlerts.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ public function handle()
5252
return new AlertRecipient($item);
5353
});
5454

55-
\Notification::send($recipients, new InventoryAlert($items, $settings->alert_threshold));
55+
Notification::send($recipients, new InventoryAlert($items, $settings->alert_threshold));
56+
} else {
57+
$this->info('No low inventory items found. No mail sent.');
5658
}
5759
} else {
5860
if ($settings->alert_email == '') {

0 commit comments

Comments
 (0)