From c0517c04f00377c40fd2ac851461a69c728332a0 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 26 Nov 2024 13:34:19 +1100 Subject: [PATCH] Exclude points when choosing what to remove from the net during nodelist processing --- app/Jobs/NodelistImport.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Jobs/NodelistImport.php b/app/Jobs/NodelistImport.php index c65334c..94d96c6 100644 --- a/app/Jobs/NodelistImport.php +++ b/app/Jobs/NodelistImport.php @@ -559,7 +559,9 @@ class NodelistImport implements ShouldQueue $no->load('addresses'); $remove = $zo - ->addresses->pluck('id') + ->addresses + ->filter(fn($item)=>(! $item->point_id)) + ->pluck('id') ->diff($no->addresses->pluck('id')) ->diff(our_address($do)->pluck('id')) ->diff(our_nodes($do)->pluck('id'));