mirror of
https://github.com/Telecominfraproject/wlan-cloud-graphql-gw.git
synced 2025-10-30 02:02:29 +00:00
Merge pull request #21 from Telecominfraproject/hotfix/WIFI-1505
hotfix/WIFI-1505: Channel field for EquipmentStatus
This commit is contained in:
@@ -397,7 +397,14 @@ const resolvers = {
|
|||||||
return dataSources.api.getEquipmentStatus(
|
return dataSources.api.getEquipmentStatus(
|
||||||
customerId,
|
customerId,
|
||||||
[id],
|
[id],
|
||||||
['PROTOCOL', 'OS_PERFORMANCE', 'RADIO_UTILIZATION', 'CLIENT_DETAILS', 'FIRMWARE']
|
[
|
||||||
|
'PROTOCOL',
|
||||||
|
'OS_PERFORMANCE',
|
||||||
|
'RADIO_UTILIZATION',
|
||||||
|
'CLIENT_DETAILS',
|
||||||
|
'FIRMWARE',
|
||||||
|
'RADIO_CHANNEL',
|
||||||
|
]
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
channel: ({ details }) => {
|
channel: ({ details }) => {
|
||||||
@@ -434,6 +441,7 @@ const resolvers = {
|
|||||||
clientDetails: (items) => items.find((i) => i.statusDataType === 'CLIENT_DETAILS') || {},
|
clientDetails: (items) => items.find((i) => i.statusDataType === 'CLIENT_DETAILS') || {},
|
||||||
firmware: (items) => items.find((i) => i.statusDataType === 'FIRMWARE') || {},
|
firmware: (items) => items.find((i) => i.statusDataType === 'FIRMWARE') || {},
|
||||||
dashboard: (items) => items.find((i) => i.statusDataType === 'CUSTOMER_DASHBOARD') || {},
|
dashboard: (items) => items.find((i) => i.statusDataType === 'CUSTOMER_DASHBOARD') || {},
|
||||||
|
channel: (items) => items.find((i) => i.statusDataType === 'RADIO_CHANNEL') || {},
|
||||||
},
|
},
|
||||||
Status: {
|
Status: {
|
||||||
detailsJSON: ({ details }) => details || {},
|
detailsJSON: ({ details }) => details || {},
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ const typeDefs = gql`
|
|||||||
clientDetails: Status
|
clientDetails: Status
|
||||||
firmware: Status
|
firmware: Status
|
||||||
dashboard: Status
|
dashboard: Status
|
||||||
|
channel: Status
|
||||||
}
|
}
|
||||||
|
|
||||||
type Status {
|
type Status {
|
||||||
|
|||||||
Reference in New Issue
Block a user