diff --git a/app/Models/Location.php b/app/Models/Location.php index fa8079c140..8766a00bd1 100644 --- a/app/Models/Location.php +++ b/app/Models/Location.php @@ -84,7 +84,7 @@ class Location extends Model if (!$this->hasCoordinates() && \LibreNMS\Config::get('geoloc.latlng', true) && - $this->timestamp && $this->timestamp->diffInDays() > 2 + (!$this->id || $this->timestamp && $this->timestamp->diffInDays() > 2) ) { $this->fetchCoordinates(); $this->updateTimestamps();