From cb4a17c93e1a8bf2ebe0a7e21492eea88ccaf9cf Mon Sep 17 00:00:00 2001 From: KelvinTegelaar <49186168+KelvinTegelaar@users.noreply.github.com> Date: Fri, 7 Feb 2025 16:31:16 +0100 Subject: [PATCH] paging fix --- .../HTTP Functions/Teams-Sharepoint/Invoke-ListTeamsVoice.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Teams-Sharepoint/Invoke-ListTeamsVoice.ps1 b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Teams-Sharepoint/Invoke-ListTeamsVoice.ps1 index 5dd1c14a4ede..84c71d717418 100644 --- a/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Teams-Sharepoint/Invoke-ListTeamsVoice.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Teams-Sharepoint/Invoke-ListTeamsVoice.ps1 @@ -41,7 +41,7 @@ Function Invoke-ListTeamsVoice { } $skip = $skip + 999 $Data - } while ( $Data.count % 999 -eq 0 ) + } while ($data.Count -eq 999) $StatusCode = [HttpStatusCode]::OK } catch { $ErrorMessage = Get-NormalizedError -Message $_.Exception.Message