@@ -36,14 +36,14 @@ public async Task ExecuteAsync()
3636 return ;
3737
3838 var lastMonth = new DateTime ( lastMonthDate . Year , lastMonthDate . Month , 1 ) ;
39- if ( _config . Value . LatestUploadedMonth == null )
40- {
41- await ReportAllFoundMonths ( lastMonth ) ;
42- return ;
43- }
39+ // if (_config.Value.LatestUploadedMonth == null)
40+ // {
41+ // await ReportAllFoundMonths(lastMonth);
42+ // return;
43+ // }
4444
45- if ( _config . Value ? . LatestUploadedMonth == lastMonth )
46- return ;
45+ // if (_config.Value?.LatestUploadedMonth == lastMonth)
46+ // return;
4747
4848
4949 await ReportMonth ( lastMonth ) ;
@@ -261,11 +261,14 @@ private async Task GetApps(Dictionary<int, ApplicationUsageStatisticsDto> apps)
261261 {
262262 while ( await reader . ReadAsync ( ) )
263263 {
264+ var estimatedNumberOfErrors = reader [ 1 ] ;
265+ var numberOfDevelopers = reader [ 2 ] ;
264266 var item = new ApplicationUsageStatisticsDto ( )
265267 {
266268 ApplicationId = reader . GetInt32 ( 0 ) ,
267- EstimatedNumberOfErrors = reader . GetFieldValue < int ? > ( 1 ) ,
268- NumberOfDevelopers = reader . GetFieldValue < decimal ? > ( 2 )
269+ EstimatedNumberOfErrors =
270+ estimatedNumberOfErrors is DBNull ? 0 : ( int ) estimatedNumberOfErrors ,
271+ NumberOfDevelopers = numberOfDevelopers is DBNull ? 0 : ( decimal ) numberOfDevelopers
269272 } ;
270273 apps [ item . ApplicationId ] = item ;
271274 }
0 commit comments