mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
change chunk to chunkById (#15139)
This commit is contained in:
@@ -166,7 +166,7 @@ class DeviceObserver
|
||||
|
||||
$device->ports()
|
||||
->select(['port_id', 'device_id', 'ifIndex', 'ifName', 'ifAlias', 'ifDescr'])
|
||||
->chunk(100, function ($ports) {
|
||||
->chunkById(100, function ($ports) {
|
||||
foreach ($ports as $port) {
|
||||
$port->delete();
|
||||
}
|
||||
|
Reference in New Issue
Block a user