mirror of
https://github.com/Telecominfraproject/wlan-cloud-graphql-gw.git
synced 2025-10-29 17:52:24 +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(
|
||||
customerId,
|
||||
[id],
|
||||
['PROTOCOL', 'OS_PERFORMANCE', 'RADIO_UTILIZATION', 'CLIENT_DETAILS', 'FIRMWARE']
|
||||
[
|
||||
'PROTOCOL',
|
||||
'OS_PERFORMANCE',
|
||||
'RADIO_UTILIZATION',
|
||||
'CLIENT_DETAILS',
|
||||
'FIRMWARE',
|
||||
'RADIO_CHANNEL',
|
||||
]
|
||||
);
|
||||
},
|
||||
channel: ({ details }) => {
|
||||
@@ -434,6 +441,7 @@ const resolvers = {
|
||||
clientDetails: (items) => items.find((i) => i.statusDataType === 'CLIENT_DETAILS') || {},
|
||||
firmware: (items) => items.find((i) => i.statusDataType === 'FIRMWARE') || {},
|
||||
dashboard: (items) => items.find((i) => i.statusDataType === 'CUSTOMER_DASHBOARD') || {},
|
||||
channel: (items) => items.find((i) => i.statusDataType === 'RADIO_CHANNEL') || {},
|
||||
},
|
||||
Status: {
|
||||
detailsJSON: ({ details }) => details || {},
|
||||
|
||||
@@ -191,6 +191,7 @@ const typeDefs = gql`
|
||||
clientDetails: Status
|
||||
firmware: Status
|
||||
dashboard: Status
|
||||
channel: Status
|
||||
}
|
||||
|
||||
type Status {
|
||||
|
||||
Reference in New Issue
Block a user