Skip to content

Commit

Permalink
log ordine non trovato
Browse files Browse the repository at this point in the history
  • Loading branch information
madbob committed May 9, 2024
1 parent a437def commit 67b522c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/app/Jobs/NotifyRemindOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public function handle()

foreach($this->orders_id as $order_id) {
$order = Order::find($order_id);
if (is_null($order)) {
\Log::error('Ordine non trovato per notifica reminder: ' . $order_id . ', ' . $gas->id);
continue;
}

$users = $order->notifiableUsers($gas);

foreach($users as $user) {
Expand Down

0 comments on commit 67b522c

Please sign in to comment.