diff --git a/server/src/lib/paloalto.js b/server/src/lib/paloalto.js index 887fa58..2af4729 100644 --- a/server/src/lib/paloalto.js +++ b/server/src/lib/paloalto.js @@ -18,7 +18,7 @@ const httpsAgent = new https.Agent({ rejectUnauthorized: false }) -async function getDevicesWithUser(network) { +async function getDevicesWithUser() { const now = new Date() const timeoutThreshold = subMinutes(now, TIMEOUT_IN_MINUTES) @@ -57,7 +57,7 @@ function createCommand(devices) { } async function updateUserIdMappings() { - const allDevices = await getDevicesWithUser(process.env.PA_NET) + const allDevices = await getDevicesWithUser() const pAHosts = await prisma.pAHost.findMany()