File tree Expand file tree Collapse file tree
src/NuGetGallery/Services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,13 +46,14 @@ public IReadOnlyCollection<string> GetTyposquattingCheckList(int checkListConfig
4646 if ( ShouldCacheBeUpdated ( checkListConfiguredLength , checkListExpireTime ) )
4747 {
4848 TyposquattingCheckListConfiguredLength = checkListConfiguredLength ;
49- IQueryable < string > cacheQuery = packageService . GetAllPackageRegistrations ( )
49+ List < string > cachedPackages = packageService . GetAllPackageRegistrations ( )
5050 . OrderByDescending ( pr => pr . IsVerified )
5151 . ThenByDescending ( pr => pr . DownloadCount )
5252 . Select ( pr => pr . Id )
53- . Take ( TyposquattingCheckListConfiguredLength ) ;
53+ . Take ( TyposquattingCheckListConfiguredLength )
54+ . ToList ( ) ;
5455
55- Cache = cacheQuery
56+ Cache = cachedPackages
5657 . Select ( pr => _typosquattingServiceHelper . NormalizeString ( pr ) )
5758 . ToList ( ) ;
5859
You can’t perform that action at this time.
0 commit comments