mark position as updated when updating from map report
This commit is contained in:
parent
5f1aadfa19
commit
cc1cf5f374
1 changed files with 2 additions and 0 deletions
|
|
@ -636,6 +636,7 @@ client.on("message", async (topic, message) => {
|
||||||
has_default_channel: mapReport.hasDefaultChannel,
|
has_default_channel: mapReport.hasDefaultChannel,
|
||||||
position_precision: mapReport.positionPrecision,
|
position_precision: mapReport.positionPrecision,
|
||||||
num_online_local_nodes: mapReport.numOnlineLocalNodes,
|
num_online_local_nodes: mapReport.numOnlineLocalNodes,
|
||||||
|
position_updated_at: new Date(),
|
||||||
};
|
};
|
||||||
|
|
||||||
await prisma.node.upsert({
|
await prisma.node.upsert({
|
||||||
|
|
@ -648,6 +649,7 @@ client.on("message", async (topic, message) => {
|
||||||
},
|
},
|
||||||
update: data,
|
update: data,
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue