SpaceAPI: network_connections: lost fields

This commit is contained in:
He4eT 2025-05-23 01:42:53 +02:00
commit 182fd4588e

View file

@ -305,7 +305,15 @@ export default ({ strapi }: { strapi: Core.Strapi }) => ({
network_connections: (
await getSensors(
'api::network-connections-sensor.network-connections-sensor',
['location', 'name', 'description', 'lastchange', 'machines'],
[
'type',
'value',
'machines',
'location',
'name',
'description',
'lastchange',
],
['machines'],
)
).map((sensor: { machines: Array<{ name?: string; mac?: string }> }) => {
@ -350,7 +358,11 @@ export default ({ strapi }: { strapi: Core.Strapi }) => ({
'description',
'lastchange',
],
['properties', 'properties.bits_per_second', 'properties.packets_per_second'],
[
'properties',
'properties.bits_per_second',
'properties.packets_per_second',
],
)
).map(
(sensor: {