From ec7a6415a45d66f77dacd9222f861f1632e22846 Mon Sep 17 00:00:00 2001 From: KelvinTegelaar <49186168+KelvinTegelaar@users.noreply.github.com> Date: Wed, 9 Aug 2023 13:50:56 +0200 Subject: [PATCH] correction to location of if statement --- Modules/CIPPCore/Public/Invoke-CIPPWebhookProcessing.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/CIPPCore/Public/Invoke-CIPPWebhookProcessing.ps1 b/Modules/CIPPCore/Public/Invoke-CIPPWebhookProcessing.ps1 index 6d602f11aae2..22db6ebeb075 100644 --- a/Modules/CIPPCore/Public/Invoke-CIPPWebhookProcessing.ps1 +++ b/Modules/CIPPCore/Public/Invoke-CIPPWebhookProcessing.ps1 @@ -141,6 +141,7 @@ function Invoke-CippWebhookProcessing { Write-Host "Add IP and potential location to knownlocation db for this specific user" if ($data.ClientIP) { + $LocationTable = Get-CIPPTable -TableName 'knownlocationdb' $IP = $data.ClientIP.Split(':') | Select-Object -Last 1 $LocationInfo = @{ RowKey = [string]$ip