Adds a null coalescing operator to the license seat checkin notification

This commit is contained in:
Ivan Nieto Vivanco 2023-08-30 11:57:29 -06:00
parent c0cbdb1fc4
commit 3cf9c1fea5

View file

@ -79,8 +79,8 @@ class CheckoutableListener
/** /**
* Send the appropriate notification * Send the appropriate notification
*/ */
$acceptances = CheckoutAcceptance::where('checkoutable_id', $event->checkoutable->id) $acceptances = CheckoutAcceptance::where('checkoutable_id', $event->checkoutable->id ?? null)
->where('assigned_to_id', $event->checkedOutTo->id) ->where('assigned_to_id', $event->checkedOutTo->id ?? null)
->get(); ->get();
foreach($acceptances as $acceptance){ foreach($acceptances as $acceptance){