Added isOnline property to WifiDevice
This commit is contained in:
parent
7f30d6f7b1
commit
73fb2c49ae
|
@ -1,6 +1,7 @@
|
|||
const WifiDevice = {
|
||||
lastSeen: _ => _.lastSeen?.toISOString(),
|
||||
firstSeen: _ => _.firstSeen?.toISOString()
|
||||
firstSeen: _ => _.firstSeen?.toISOString(),
|
||||
isOnline: _ => _.status == 'ONLINE'
|
||||
}
|
||||
|
||||
export { WifiDevice }
|
||||
|
|
|
@ -155,6 +155,7 @@ const typeDefs = gql`
|
|||
uptime: String
|
||||
apName: String
|
||||
status: Status
|
||||
isOnline: Boolean
|
||||
}
|
||||
|
||||
type UserPresence {
|
||||
|
|
Loading…
Reference in New Issue
Block a user