fix: Remove gpsfixstatus field from packet insertion to prevent database errors
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 <noreply@anthropic.com>
This commit is contained in:
parent
da0b65ca1e
commit
fd60467da8
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue