Catch all

This commit is contained in:
Douglas Barone 2020-11-19 11:34:31 -04:00
parent 6fff266e11
commit 259678e100

View File

@ -10,6 +10,7 @@ async function getDevices() {
let skip = 0
let currentPage = 1
try {
const browser = await puppeteer.launch({
ignoreHTTPSErrors: true
})
@ -21,7 +22,6 @@ async function getDevices() {
password: auth.password
})
try {
let devices = []
let result = []
@ -62,7 +62,7 @@ export async function getOnlineWifiDevices() {
uptime: client.UT.toString(),
apName: client.AP,
status: client.ST == 'Online' ? 'ONLINE' : 'OFFLINE',
controller: "Cisco"
controller: 'Cisco'
}))
return hydratedOnlineDevices