Channel field for EquipmentStatus

This commit is contained in:
irtiza-h30
2021-03-03 14:21:03 -05:00
parent 6a2c2900ce
commit 4be5b3e42d
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 {