mirror of
https://github.com/Roslund/meshtastic-map.git
synced 2026-03-28 17:43:03 +01:00
Collect packet_id for ServiceEnvelopes
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE `service_envelopes` ADD COLUMN `packet_id` BIGINT NULL;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX `service_envelopes_packet_id_idx` ON `service_envelopes`(`packet_id`);
|
||||
@@ -205,6 +205,7 @@ model ServiceEnvelope {
|
||||
to BigInt
|
||||
from BigInt
|
||||
portnum Int?
|
||||
packet_id BigInt?
|
||||
protobuf Bytes
|
||||
|
||||
created_at DateTime @default(now())
|
||||
@@ -213,6 +214,7 @@ model ServiceEnvelope {
|
||||
@@index(created_at)
|
||||
@@index(updated_at)
|
||||
@@index(gateway_id)
|
||||
@@index(packet_id)
|
||||
@@map("service_envelopes")
|
||||
}
|
||||
|
||||
|
||||
@@ -751,6 +751,7 @@ client.on("message", async (topic, message) => {
|
||||
to: envelope.packet.to,
|
||||
from: envelope.packet.from,
|
||||
portnum: portnum,
|
||||
packet_id: envelope.packet.id,
|
||||
protobuf: message,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user