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,
|
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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user