Catch all
This commit is contained in:
parent
6fff266e11
commit
259678e100
|
@ -10,6 +10,7 @@ async function getDevices() {
|
||||||
let skip = 0
|
let skip = 0
|
||||||
let currentPage = 1
|
let currentPage = 1
|
||||||
|
|
||||||
|
try {
|
||||||
const browser = await puppeteer.launch({
|
const browser = await puppeteer.launch({
|
||||||
ignoreHTTPSErrors: true
|
ignoreHTTPSErrors: true
|
||||||
})
|
})
|
||||||
|
@ -21,7 +22,6 @@ async function getDevices() {
|
||||||
password: auth.password
|
password: auth.password
|
||||||
})
|
})
|
||||||
|
|
||||||
try {
|
|
||||||
let devices = []
|
let devices = []
|
||||||
let result = []
|
let result = []
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ export async function getOnlineWifiDevices() {
|
||||||
uptime: client.UT.toString(),
|
uptime: client.UT.toString(),
|
||||||
apName: client.AP,
|
apName: client.AP,
|
||||||
status: client.ST == 'Online' ? 'ONLINE' : 'OFFLINE',
|
status: client.ST == 'Online' ? 'ONLINE' : 'OFFLINE',
|
||||||
controller: "Cisco"
|
controller: 'Cisco'
|
||||||
}))
|
}))
|
||||||
|
|
||||||
return hydratedOnlineDevices
|
return hydratedOnlineDevices
|
||||||
|
|
Loading…
Reference in New Issue
Block a user