Adds a null coalescing operator to the license seat checkin notification
This commit is contained in:
parent
c0cbdb1fc4
commit
3cf9c1fea5
1 changed files with 2 additions and 2 deletions
|
@ -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){
|
||||||
|
|
Loading…
Add table
Reference in a new issue