File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 22using CMS . DataEngine ;
33using CMS . Search ;
44using CMS . Search . Azure ;
5+ using CMS . SiteProvider ;
56using Microsoft . Extensions . Diagnostics . HealthChecks ;
67using XperienceCommunity . AspNetCore . HealthChecks . Extensions ;
78
@@ -75,7 +76,8 @@ protected override async Task<List<SearchTaskAzureInfo>> GetDataForTypeAsync(
7576 {
7677 var query = _searchTaskAzureInfoProvider . Get ( )
7778 . Columns ( s_columnNames )
78- . WhereNotNullOrEmpty ( nameof ( SearchTaskAzureInfo . SearchTaskAzureErrorMessage ) ) ;
79+ . WhereNotNullOrEmpty ( nameof ( SearchTaskAzureInfo . SearchTaskAzureErrorMessage ) )
80+ . TopN ( 100 ) ;
7981
8082 return await query . ToListAsync ( cancellationToken : cancellationToken ) ;
8183 }
Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ protected override async Task<List<SearchTaskInfo>> GetDataForTypeAsync(Cancella
6666 var query = _searchTaskInfoProvider . Get ( )
6767 . Columns ( s_columnNames )
6868 . WhereNotNullOrEmpty ( nameof ( SearchTaskInfo . SearchTaskErrorMessage ) )
69- . OnSite ( SiteContext . CurrentSiteID ) ;
69+ . OnSite ( SiteContext . CurrentSiteID )
70+ . TopN ( 100 ) ;
7071
7172 return await query . ToListAsync ( cancellationToken : cancellationToken ) ;
7273 }
You can’t perform that action at this time.
0 commit comments