Skip to content

Commit e1c1341

Browse files
ShanefeCopilot
andauthored
Update Calendar/CalLogHelpers/ExceptionCollectionFunctions.ps1
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4b9c42b commit e1c1341

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Calendar/CalLogHelpers/ExceptionCollectionFunctions.ps1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,11 @@ function CollectExceptionLogsFast {
345345
return
346346
}
347347

348-
$collectedExceptionLogs = @()
349-
foreach ($exceptionOriginalStartDate in $exceptionDates) {
350-
$collectedExceptionLogs += GetCalendarDiagnosticObjects -Identity $Identity -MeetingID $MeetingID -ExceptionDateOverride $exceptionOriginalStartDate
351-
}
348+
$collectedExceptionLogs = @(
349+
foreach ($exceptionOriginalStartDate in $exceptionDates) {
350+
GetCalendarDiagnosticObjects -Identity $Identity -MeetingID $MeetingID -ExceptionDateOverride $exceptionOriginalStartDate
351+
}
352+
)
352353

353354
$collectedExceptionLogs = @($collectedExceptionLogs | Where-Object {
354355
$_.ItemClass -notlike "IPM.Appointment*" -or

0 commit comments

Comments
 (0)