From fd60467da84904ac4b04f19d2c187c946912cfdb Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 3 Aug 2025 15:29:24 -0500 Subject: [PATCH] fix: Remove gpsfixstatus field from packet insertion to prevent database errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The recent APRS parser update added a gpsfixstatus field that doesn't exist in our database schema. This was causing all packet insertions to fail in production with ArgumentError, preventing any packets from being stored and making historical packet loading impossible. Changes: - Added explicit removal of :gpsfixstatus field in packet_consumer.ex - Added both atom and string key deletion for safety - Placed removal alongside other field removals like raw_weather_data This fixes the critical production issue where no packets were being stored, which prevented historical packet loading from working. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- lib/aprsme/packet_consumer.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/aprsme/packet_consumer.ex b/lib/aprsme/packet_consumer.ex index 53b5560..a82dc84 100644 --- a/lib/aprsme/packet_consumer.ex +++ b/lib/aprsme/packet_consumer.ex @@ -324,6 +324,9 @@ defmodule Aprsme.PacketConsumer do # Explicitly remove raw_weather_data to prevent insert_all errors |> Map.delete(:raw_weather_data) |> Map.delete("raw_weather_data") + # Remove gpsfixstatus field that was added by the parser but not in schema + |> Map.delete(:gpsfixstatus) + |> Map.delete("gpsfixstatus") # Create PostGIS geometry for location field |> create_location_geometry() rescue