Merge pull request #21 from Telecominfraproject/hotfix/WIFI-1505

hotfix/WIFI-1505: Channel field for EquipmentStatus
This commit is contained in:
Sean Macfarlane
2021-03-04 12:42:48 -05:00
committed by GitHub
2 changed files with 10 additions and 1 deletions

View File

@@ -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 || {},

View File

@@ -191,6 +191,7 @@ const typeDefs = gql`
clientDetails: Status
firmware: Status
dashboard: Status
channel: Status
}
type Status {