Collect node max hops
This commit is contained in:
parent
ce8adb88a4
commit
a9e749a336
3 changed files with 6 additions and 1 deletions
|
|
@ -0,0 +1,2 @@
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `nodes` ADD COLUMN `max_hops` INTEGER NULL;
|
||||||
|
|
@ -55,6 +55,7 @@ model Node {
|
||||||
|
|
||||||
ok_to_mqtt Boolean?
|
ok_to_mqtt Boolean?
|
||||||
is_backbone Boolean?
|
is_backbone Boolean?
|
||||||
|
max_hops Int?
|
||||||
|
|
||||||
created_at DateTime @default(now())
|
created_at DateTime @default(now())
|
||||||
updated_at DateTime @default(now()) @updatedAt
|
updated_at DateTime @default(now()) @updatedAt
|
||||||
|
|
|
||||||
|
|
@ -947,6 +947,7 @@ client.on("message", async (topic, message) => {
|
||||||
role: user.role,
|
role: user.role,
|
||||||
is_unmessagable: user.isUnmessagable,
|
is_unmessagable: user.isUnmessagable,
|
||||||
ok_to_mqtt: isOkToMqtt,
|
ok_to_mqtt: isOkToMqtt,
|
||||||
|
max_hops: envelope.packet.hopStart,
|
||||||
|
|
||||||
firmware_version: '<2.5.0',
|
firmware_version: '<2.5.0',
|
||||||
...(user.publicKey != '' && {
|
...(user.publicKey != '' && {
|
||||||
|
|
@ -965,6 +966,7 @@ client.on("message", async (topic, message) => {
|
||||||
role: user.role,
|
role: user.role,
|
||||||
is_unmessagable: user.isUnmessagable,
|
is_unmessagable: user.isUnmessagable,
|
||||||
ok_to_mqtt: isOkToMqtt,
|
ok_to_mqtt: isOkToMqtt,
|
||||||
|
max_hops: envelope.packet.hopStart,
|
||||||
|
|
||||||
firmware_version: '<2.5.0',
|
firmware_version: '<2.5.0',
|
||||||
...(user.publicKey != '' && {
|
...(user.publicKey != '' && {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue