File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ export async function GET(req: NextRequest) {
383383 } else {
384384 const daysParam = req . nextUrl . searchParams . get ( "days" ) ;
385385 const parsedDays = daysParam ? parseInt ( daysParam , 10 ) : NaN ;
386- days = isNaN ( parsedDays ) ? 30 : Math . max ( 1 , Math . min ( 365 , parsedDays ) ) ;
386+ days = Number . isNaN ( parsedDays ) ? 30 : Math . max ( 1 , Math . min ( 365 , parsedDays ) ) ;
387387 }
388388
389389 const accountId = req . nextUrl . searchParams . get ( "accountId" ) ;
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ async function getAverageFirstReviewHours(
158158 if ( validDurations . length === 0 ) return null ;
159159
160160 const average = validDurations . reduce ( ( sum , value ) => sum + value , 0 ) / validDurations . length ;
161- return Math . round ( average * 10 ) / 10 ;
161+ return Math . round ( average * 10 + Number . EPSILON ) / 10 ;
162162}
163163
164164async function fetchPRMetrics (
You can’t perform that action at this time.
0 commit comments