Skip to content

Commit 083400f

Browse files
committed
fix filters
1 parent 8e64a0c commit 083400f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/Invoke-ListLogs.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function Invoke-ListLogs {
2727
if ($request.Query.Filter -eq 'True') {
2828
$LogLevel = if ($Request.Query.Severity) { ($Request.query.Severity).split(',') } else { 'Info', 'Warn', 'Error', 'Critical', 'Alert' }
2929
$PartitionKey = $Request.Query.DateFilter
30-
$username = $Request.Query.User
30+
$username = $Request.Query.User ?? '*'
3131

3232
$StartDate = $Request.Query.StartDate ?? $Request.Query.DateFilter
3333
$EndDate = $Request.Query.EndDate ?? $Request.Query.DateFilter

0 commit comments

Comments
 (0)