Added isOnline property to WifiDevice

This commit is contained in:
Douglas Barone 2020-11-30 14:30:50 -04:00
parent 7f30d6f7b1
commit 73fb2c49ae
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
const WifiDevice = {
lastSeen: _ => _.lastSeen?.toISOString(),
firstSeen: _ => _.firstSeen?.toISOString()
firstSeen: _ => _.firstSeen?.toISOString(),
isOnline: _ => _.status == 'ONLINE'
}
export { WifiDevice }

View File

@ -155,6 +155,7 @@ const typeDefs = gql`
uptime: String
apName: String
status: Status
isOnline: Boolean
}
type UserPresence {