Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant committed Sep 27, 2023
1 parent def01a3 commit 63d5177
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LibreNMS/Alert/AlertUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ public static function findContactsOwners(array $results): array
{
return User::whereNot('email', '')->where(function (Builder $query) use ($results) {
if ($device_ids = array_filter(Arr::pluck($results, 'device_id'))) {
$query->orWhereHas('devicesOwned', fn($q) => $q->whereIn('devices_perms.device_id', $device_ids));
$query->orWhereHas('devicesOwned', fn ($q) => $q->whereIn('devices_perms.device_id', $device_ids));
}
if ($port_ids = array_filter(Arr::pluck($results, 'port_id'))) {
$query->orWhereHas('portsOwned', fn($q) => $q->whereIn('ports_perms.port_id', $port_ids));
$query->orWhereHas('portsOwned', fn ($q) => $q->whereIn('ports_perms.port_id', $port_ids));
}
if ($bill_ids = array_filter(Arr::pluck($results, 'bill_id'))) {
$query->orWhereHas('bills', fn($q) => $q->whereIn('bill_perms.bill_id', $bill_ids));
$query->orWhereHas('bills', fn ($q) => $q->whereIn('bill_perms.bill_id', $bill_ids));
}
})->pluck('realname', 'email')->all();
}
Expand Down

0 comments on commit 63d5177

Please sign in to comment.