mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-05 01:47:24 +00:00
SpaceAPI: network_connections: lost fields
This commit is contained in:
parent
f6887ba417
commit
182fd4588e
1 changed files with 14 additions and 2 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue