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: (
|
network_connections: (
|
||||||
await getSensors(
|
await getSensors(
|
||||||
'api::network-connections-sensor.network-connections-sensor',
|
'api::network-connections-sensor.network-connections-sensor',
|
||||||
['location', 'name', 'description', 'lastchange', 'machines'],
|
[
|
||||||
|
'type',
|
||||||
|
'value',
|
||||||
|
'machines',
|
||||||
|
'location',
|
||||||
|
'name',
|
||||||
|
'description',
|
||||||
|
'lastchange',
|
||||||
|
],
|
||||||
['machines'],
|
['machines'],
|
||||||
)
|
)
|
||||||
).map((sensor: { machines: Array<{ name?: string; mac?: string }> }) => {
|
).map((sensor: { machines: Array<{ name?: string; mac?: string }> }) => {
|
||||||
|
|
@ -350,7 +358,11 @@ export default ({ strapi }: { strapi: Core.Strapi }) => ({
|
||||||
'description',
|
'description',
|
||||||
'lastchange',
|
'lastchange',
|
||||||
],
|
],
|
||||||
['properties', 'properties.bits_per_second', 'properties.packets_per_second'],
|
[
|
||||||
|
'properties',
|
||||||
|
'properties.bits_per_second',
|
||||||
|
'properties.packets_per_second',
|
||||||
|
],
|
||||||
)
|
)
|
||||||
).map(
|
).map(
|
||||||
(sensor: {
|
(sensor: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue