Collect portnums for ServiceEnvelopes
This commit is contained in:
parent
342c8dc87a
commit
af2a663dab
3 changed files with 4 additions and 0 deletions
|
|
@ -0,0 +1,2 @@
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `service_envelopes` ADD COLUMN `portnum` INTEGER NULL;
|
||||||
|
|
@ -204,6 +204,7 @@ model ServiceEnvelope {
|
||||||
gateway_id BigInt?
|
gateway_id BigInt?
|
||||||
to BigInt
|
to BigInt
|
||||||
from BigInt
|
from BigInt
|
||||||
|
portnum Int?
|
||||||
protobuf Bytes
|
protobuf Bytes
|
||||||
|
|
||||||
created_at DateTime @default(now())
|
created_at DateTime @default(now())
|
||||||
|
|
|
||||||
|
|
@ -750,6 +750,7 @@ client.on("message", async (topic, message) => {
|
||||||
gateway_id: envelope.gatewayId ? convertHexIdToNumericId(envelope.gatewayId) : null,
|
gateway_id: envelope.gatewayId ? convertHexIdToNumericId(envelope.gatewayId) : null,
|
||||||
to: envelope.packet.to,
|
to: envelope.packet.to,
|
||||||
from: envelope.packet.from,
|
from: envelope.packet.from,
|
||||||
|
portnum: portnum,
|
||||||
protobuf: message,
|
protobuf: message,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue