From 0b7b8b4c69ad4cd058d95fd36307f1c61bf97c34 Mon Sep 17 00:00:00 2001 From: Douglas Barone Date: Mon, 4 Apr 2022 15:18:00 -0400 Subject: [PATCH] Rename const --- server/src/lib/unifiController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/lib/unifiController.js b/server/src/lib/unifiController.js index 72a0d8f..c75d2bd 100644 --- a/server/src/lib/unifiController.js +++ b/server/src/lib/unifiController.js @@ -177,7 +177,7 @@ export async function getOnlineWifiDevices() { onlineDevicesPromise ]) - const hydratedOnlineDevices = onlineDevices[0].map(client => ({ + const restructuredOnlineDevices = onlineDevices[0].map(client => ({ user: client['1x_identity'] || null, oui: ouiFinder(client.mac), mac: client.mac, @@ -192,7 +192,7 @@ export async function getOnlineWifiDevices() { controller: 'UniFi' })) - return hydratedOnlineDevices + return restructuredOnlineDevices } catch (e) { throw new Error('Error getting UniFi devices. ' + e) }