mark position as updated when updating from map report

This commit is contained in:
liamcottle
2024-04-01 00:15:08 +13:00
parent 5f1aadfa19
commit cc1cf5f374

View File

@ -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);
}