diff --git a/src/app/api/goals/[id]/route.ts b/src/app/api/goals/[id]/route.ts index 4a0fdf485..1b4642dc9 100644 --- a/src/app/api/goals/[id]/route.ts +++ b/src/app/api/goals/[id]/route.ts @@ -171,7 +171,7 @@ export async function PATCH( unit: updatedGoal.unit, recurrence: updatedGoal.recurrence, completedAt: new Date().toISOString(), - }).catch(() => {}); + }).catch( => console.error()); } return Response.json({ goal: updatedGoal }); diff --git a/src/app/api/metrics/prs/route.ts b/src/app/api/metrics/prs/route.ts index b5f734133..780945cf1 100644 --- a/src/app/api/metrics/prs/route.ts +++ b/src/app/api/metrics/prs/route.ts @@ -158,7 +158,7 @@ async function getAverageFirstReviewHours( if (validDurations.length === 0) return null; const average = validDurations.reduce((sum, value) => sum + value, 0) / validDurations.length; - return Math.round(average * 10) / 10; + return Math.round(average * 10 + Number.EPSILON) / 10; } async function fetchPRMetrics( diff --git a/src/app/u/[username]/opengraph-image.tsx b/src/app/u/[username]/opengraph-image.tsx index 06afb7a0e..3f76f82ee 100644 --- a/src/app/u/[username]/opengraph-image.tsx +++ b/src/app/u/[username]/opengraph-image.tsx @@ -219,3 +219,5 @@ export default async function Image({ ); } } + +.catch(err => console.error("Promise.all failed:", err)); \ No newline at end of file