mirror of
https://github.com/Roslund/meshtastic-map.git
synced 2026-04-30 18:42:49 +02:00
mark position as updated when updating from map report
This commit is contained in:
@@ -636,6 +636,7 @@ client.on("message", async (topic, message) => {
|
||||
has_default_channel: mapReport.hasDefaultChannel,
|
||||
position_precision: mapReport.positionPrecision,
|
||||
num_online_local_nodes: mapReport.numOnlineLocalNodes,
|
||||
position_updated_at: new Date(),
|
||||
};
|
||||
|
||||
await prisma.node.upsert({
|
||||
@@ -648,6 +649,7 @@ client.on("message", async (topic, message) => {
|
||||
},
|
||||
update: data,
|
||||
});
|
||||
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user