mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Adds a null coalescing operator to the license seat checkin notification
This commit is contained in:
parent
c0cbdb1fc4
commit
3cf9c1fea5
|
@ -79,8 +79,8 @@ class CheckoutableListener
|
|||
/**
|
||||
* Send the appropriate notification
|
||||
*/
|
||||
$acceptances = CheckoutAcceptance::where('checkoutable_id', $event->checkoutable->id)
|
||||
->where('assigned_to_id', $event->checkedOutTo->id)
|
||||
$acceptances = CheckoutAcceptance::where('checkoutable_id', $event->checkoutable->id ?? null)
|
||||
->where('assigned_to_id', $event->checkedOutTo->id ?? null)
|
||||
->get();
|
||||
|
||||
foreach($acceptances as $acceptance){
|
||||
|
|
Loading…
Reference in a new issue