fix: InsertTransmission returns 2 values — handle isNew at all call sites

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Kpa-clawbot
2026-03-27 22:58:11 -07:00
parent 8a813ed87c
commit f636fc3f7e

View File

@@ -332,7 +332,7 @@ func handleMessage(store *Store, tag string, source MQTTSource, m mqtt.Message,
DecodedJSON: string(decodedJSON),
}
if err := store.InsertTransmission(pktData); err != nil {
if _, err := store.InsertTransmission(pktData); err != nil {
log.Printf("MQTT [%s] channel insert error: %v", tag, err)
}
@@ -409,7 +409,7 @@ func handleMessage(store *Store, tag string, source MQTTSource, m mqtt.Message,
DecodedJSON: string(decodedJSON),
}
if err := store.InsertTransmission(pktData); err != nil {
if _, err := store.InsertTransmission(pktData); err != nil {
log.Printf("MQTT [%s] DM insert error: %v", tag, err)
}